1
0
forked from xjboss/KCauldronX

Fix fake player problem with some plugins.

This commit is contained in:
2017-07-02 16:53:57 +08:00
parent 9ebbd9e5b6
commit 0e0f8a1dc2
3 changed files with 78 additions and 14 deletions

View File

@ -12,7 +12,7 @@
import net.minecraft.world.WorldManager;
import net.minecraft.world.WorldServer;
import net.minecraft.world.WorldServerMulti;
@@ -78,7 +80,7 @@
@@ -78,10 +80,10 @@
this.initialWorldChunkLoad();
}
@ -20,7 +20,11 @@
+ protected boolean startServer() throws java.net.UnknownHostException // Cauldron
{
logger.info("Starting integrated minecraft server version 1.7.10");
this.setOnlineMode(true);
- this.setOnlineMode(true);
+ this.setOnlineMode(false);
this.setCanSpawnAnimals(true);
this.setCanSpawnNPCs(true);
this.setAllowPvp(true);
@@ -103,7 +105,15 @@
{
logger.info("Saving and pausing game...");