Removed TEMPORARY guest policy. Fixes #25

This commit is contained in:
Simon 2018-11-27 13:35:42 -05:00
parent aaeb18068d
commit 04c837d692
2 changed files with 2 additions and 7 deletions

View File

@ -174,7 +174,7 @@ public class GameUniverse {
return users.get(username);
}
public User getOrCreateUser(String username, boolean makeControlledUnit) {
public User getOrCreateUser(String username, boolean makeControllableUnit) {
User user = getUser(username);
if (user != null) {
@ -184,10 +184,9 @@ public class GameUniverse {
LogManager.LOGGER.info("Creating new User: " + username);
try {
if (makeControlledUnit) {
if (makeControllableUnit) {
user = new User();
} else {
user = new User(null);
}

View File

@ -9,8 +9,4 @@ public enum GuestPolicy {
* Block guests completely
*/
BLOCK,
/**
* Allow guests, can have Cubot, but it is not saved in database
*/
TEMPORARY
}