Пример #1
0
 public void updateCache() {
   for (Player player : getServer().getOnlinePlayers())
     try {
       getCache(player)
           .setLastTownBlock(
               new WorldCoord(
                   getTownyUniverse().getWorld(player.getWorld().getName()),
                   Coord.parseCoord(player)));
     } catch (NotRegisteredException e) {
       deleteCache(player);
     }
 }
Пример #2
0
 public void updateCache(WorldCoord worldCoord) {
   for (Player player : getServer().getOnlinePlayers())
     if (Coord.parseCoord(player).equals(worldCoord))
       getCache(player).setLastTownBlock(worldCoord); // Automatically resets permissions.
 }
Пример #3
0
 public void loadSettings() {
   townyUniverse.loadSettings();
   Coord.setCellSize(TownySettings.getTownBlockSize());
   TownyIConomyObject.setPlugin(this);
   TownyCommand.setUniverse(townyUniverse);
 }