mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-10 00:52:22 -07:00
Implemented new GameMode methods (hint: You can't set game mode yet. Sorry.)
This commit is contained in:
@@ -769,7 +769,7 @@ public final class CraftServer implements Server {
|
||||
}
|
||||
|
||||
public OfflinePlayer getOfflinePlayer(String name) {
|
||||
OfflinePlayer result = getPlayer(name);
|
||||
OfflinePlayer result = getPlayerExact(name);
|
||||
|
||||
if (result == null) {
|
||||
result = new CraftOfflinePlayer(this, name);
|
||||
@@ -819,4 +819,12 @@ public final class CraftServer implements Server {
|
||||
public void reloadWhitelist() {
|
||||
server.f();
|
||||
}
|
||||
|
||||
public GameMode getDefaultGameMode() {
|
||||
return GameMode.SURVIVAL;
|
||||
}
|
||||
|
||||
public void setDefaultGameMode(GameMode mode) {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user