Exemple #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);
 }
Exemple #2
0
 public void updateSpoutWeather(World world) {
   if (!MyWorlds.isSpoutPluginEnabled) return;
   for (Player p : world.getPlayers()) updateSpoutWeather(p);
 }