Dieser Commit ist enthalten in:
Ursprung
c593e23b80
Commit
79d9a8b902
@ -23,7 +23,6 @@ import de.steamwar.sql.SteamwarUser;
|
|||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import java.util.logging.Level;
|
|
||||||
|
|
||||||
public class BauServerInfo {
|
public class BauServerInfo {
|
||||||
private static Integer bauOwner = null;
|
private static Integer bauOwner = null;
|
||||||
@ -34,9 +33,7 @@ public class BauServerInfo {
|
|||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
try {
|
try {
|
||||||
bauOwner = SteamwarUser.get(UUID.fromString(Bukkit.getWorlds().get(0).getName())).getId();
|
bauOwner = SteamwarUser.get(UUID.fromString(Bukkit.getWorlds().get(0).getName())).getId();
|
||||||
} catch (IllegalArgumentException exception) {
|
} catch (IllegalArgumentException ignored) {}
|
||||||
Bukkit.getLogger().log(Level.SEVERE, "World name is not a user", new IllegalStateException("World name is not a user"));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren