mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-19 18:46:43 +00:00
Removed TEMPORARY guest policy. Fixes #25
This commit is contained in:
parent
aaeb18068d
commit
04c837d692
@ -174,7 +174,7 @@ public class GameUniverse {
|
|||||||
return users.get(username);
|
return users.get(username);
|
||||||
}
|
}
|
||||||
|
|
||||||
public User getOrCreateUser(String username, boolean makeControlledUnit) {
|
public User getOrCreateUser(String username, boolean makeControllableUnit) {
|
||||||
User user = getUser(username);
|
User user = getUser(username);
|
||||||
|
|
||||||
if (user != null) {
|
if (user != null) {
|
||||||
@ -184,10 +184,9 @@ public class GameUniverse {
|
|||||||
LogManager.LOGGER.info("Creating new User: " + username);
|
LogManager.LOGGER.info("Creating new User: " + username);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (makeControlledUnit) {
|
if (makeControllableUnit) {
|
||||||
user = new User();
|
user = new User();
|
||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
user = new User(null);
|
user = new User(null);
|
||||||
}
|
}
|
||||||
|
@ -9,8 +9,4 @@ public enum GuestPolicy {
|
|||||||
* Block guests completely
|
* Block guests completely
|
||||||
*/
|
*/
|
||||||
BLOCK,
|
BLOCK,
|
||||||
/**
|
|
||||||
* Allow guests, can have Cubot, but it is not saved in database
|
|
||||||
*/
|
|
||||||
TEMPORARY
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user