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