예제 #1
0
 /**
  * Fired when a player joined this world
  *
  * @param player that just entered this world
  */
 public void onPlayerEnter(Player player) {
   // Apply world-specific settings
   updateOP(player);
   updateGamemode(player);
   updateSpoutWeather(player);
   updateHunger(player);
   // Refresh states based on the new world the player joined
   MWPlayerDataController.refreshState(player);
 }
예제 #2
0
 public void updateHunger(World world) {
   for (Player player : WorldUtil.getPlayers(world)) {
     updateHunger(player);
   }
 }