/** * 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); }
public void updateHunger(World world) { for (Player player : WorldUtil.getPlayers(world)) { updateHunger(player); } }