コード例 #1
0
ファイル: WorldConfig.java プロジェクト: KingRat/MyWorlds
 /**
  * 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
ファイル: WorldConfig.java プロジェクト: KingRat/MyWorlds
 public void updateHunger(World world) {
   for (Player player : WorldUtil.getPlayers(world)) {
     updateHunger(player);
   }
 }