/** * 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 updateSpoutWeather(World world) { if (!MyWorlds.isSpoutPluginEnabled) return; for (Player p : world.getPlayers()) updateSpoutWeather(p); }