Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- public void worldLoad(FMLServerStartingEvent e)
- {
- World w = e.getServer().getEntityWorld();
- GameRules g = w.getGameRules();
- String pos = "CustomPosSpawner";
- String readpos = "CustomPosSpawnerReading";
- ValueType type = GameRules.ValueType.BOOLEAN_VALUE;
- if(!g.hasRule(pos))
- g.addGameRule(pos, "true", type);
- if(!g.hasRule(readpos))
- g.addGameRule(readpos, "true", type);
- }
Advertisement
Add Comment
Please, Sign In to add comment