Guest User

Untitled

a guest
Feb 3rd, 2018
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. @EventHandler
  2. public void worldLoad(FMLServerStartingEvent e)
  3. {
  4. World w = e.getServer().getEntityWorld();
  5. GameRules g = w.getGameRules();
  6. String pos = "CustomPosSpawner";
  7. String readpos = "CustomPosSpawnerReading";
  8. ValueType type = GameRules.ValueType.BOOLEAN_VALUE;
  9. g.addGameRule(pos, "true", type);
  10. g.addGameRule(readpos, "true", type);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment