Beispiel #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);
     }
 }
Beispiel #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.
 }
Beispiel #3
0
 public void loadSettings() {
   townyUniverse.loadSettings();
   Coord.setCellSize(TownySettings.getTownBlockSize());
   TownyIConomyObject.setPlugin(this);
   TownyCommand.setUniverse(townyUniverse);
 }