Examples of PlayerManager


Examples of cc.co.evenprime.bukkit.nocheat.data.PlayerManager

    }

    public void onEnable() {

        // Then set up in memory per player data storage
        this.players = new PlayerManager(this);

        this.commandHandler = new CommandHandler(this);
        // Then read the configuration files
        this.conf = new ConfigurationManager(this, this.getDataFolder());
View Full Code Here

Examples of com.artemis.managers.PlayerManager

  @Override
  public void init(GameContainer container) throws SlickException {
    world = new World();

    world.setManager(new PlayerManager());
    world.setManager(new TagManager());
    world.setManager(new GroupManager());

    world.setSystem(new SoundSystem());
    world.setSystem(new HealthSystem());
View Full Code Here

Examples of manager.PlayerManager

  /*
   *   Private constructor (Singleton)
   */
  private Game() {
    super();
    this.playerManager = new PlayerManager();
    this.baseManager = new BaseManager();
    this.agentManager = new AgentManager();
    this.towerManager = new TowerManager();
    this.mapManager = new MapManager();
    this.running = true;
View Full Code Here

Examples of net.minecraft.server.management.PlayerManager

    public void sendToChunk(World world, int chunkX, int chunkZ) {
        sendToChunk(toPacket(), world, chunkX, chunkZ);
    }

    public static void sendToChunk(Packet packet, World world, int chunkX, int chunkZ) {
        PlayerManager playerManager = ((WorldServer)world).getPlayerManager();
        for (EntityPlayerMP player : (List<EntityPlayerMP>) MinecraftServer.getServer().getConfigurationManager().playerEntityList)
            if(playerManager.isPlayerWatchingChunk(player, chunkX, chunkZ))
                sendToPlayer(packet, player);

        /* Commented until forge accepts access tranformer request
        PlayerInstance p = ((WorldServer) world).getPlayerManager().getOrCreateChunkWatcher(chunkX, chunkZ, false);
        if (p != null)
View Full Code Here

Examples of net.minecraft.server.management.PlayerManager

    if (world instanceof WorldServer) {
      TObjectHashIterator<Chunk> c = set.iterator();
      for (int k = 0, e = set.size(); k < e; ++k) {
        Chunk chunk = c.next();
        PlayerManager manager = ((WorldServer) world).getPlayerManager();
        if (manager == null) {
          return;
        }
        PlayerInstance watcher = manager.getOrCreateChunkWatcher(chunk.xPosition, chunk.zPosition, false);
        if (watcher != null) {
          watcher.sendToAllPlayersWatchingChunk(new S21PacketChunkData(chunk, false, -1));
        }
      }
    }
View Full Code Here

Examples of net.minecraft.server.management.PlayerManager

  public static void sendChunk(Chunk c, int verticalBits)
  {
    try
    {
      WorldServer ws = (WorldServer) c.worldObj;
      PlayerManager pm = ws.getPlayerManager();

      if ( getOrCreateChunkWatcher == null )
      {
        getOrCreateChunkWatcher = ReflectionHelper.findMethod( PlayerManager.class, pm, new String[] { "getOrCreateChunkWatcher", "func_72690_a" },
            int.class, int.class, boolean.class );
View Full Code Here

Examples of net.minecraft.server.management.PlayerManager

    int ticks = world.tickCount;
    // Handle unload requests
    final ConcurrentQueueSet<Long> unloadStage0 = this.unloadStage0;
    if (!unloadStage0.isEmpty()) {
      ImmutableSetMultimap<ChunkCoordIntPair, ForgeChunkManager.Ticket> persistentChunks = world.getPersistentChunks();
      PlayerManager playerManager = world.getPlayerManager();
      ChunkCoordIntPair chunkCoordIntPair = new ChunkCoordIntPair(0, 0);
      Long key_;
      int done = 0;
      while (++done != 75 && (key_ = unloadStage0.take()) != null) {
        long key = key_;
        int x = (int) key;
        int z = (int) (key >> 32);
        chunkCoordIntPair.chunkXPos = x;
        chunkCoordIntPair.chunkZPos = z;
        Chunk chunk = (Chunk) chunks.getValueByKey(key);
        if (chunk == null) {
          continue;
        }
        synchronized (chunk) {
          if (chunk.partiallyUnloaded || !chunk.queuedUnload || unloadingChunks.containsItem(key)) {
            continue;
          }
          if (persistentChunks.containsKey(chunkCoordIntPair) || playerManager.getOrCreateChunkWatcher(x, z, false) != null || !fireBukkitUnloadEvent(chunk)) {
            chunk.queuedUnload = false;
            continue;
          }
          if (lastChunk == chunk) {
            lastChunk = null;
View Full Code Here

Examples of org.freerealm.player.PlayerManager

        realm.setVegetationManager(new VegetationManagerImpl());
        realm.setTileImprovementTypeManager(new TileImprovementTypeManager());
        realm.setSettlementImprovementManager(new SettlementImprovementManager());
        realm.setUnitTypeManager(new UnitTypeManager());
        realm.setNationManager(new NationManager());
        realm.setPlayerManager(new PlayerManager());
        realm.setDiplomacy(new Diplomacy());
        realm.setHistory(new FreeRealmHistory());
        realm.setWorldMap(new WorldMap());
        realm.setPathFinder(null);
        realm.setNumberOfTurns(0);
View Full Code Here

Examples of org.freerealm.player.PlayerManager

        NationManager nationManager = new NationManager();
        (new NationManagerXMLWrapper(nationManager)).initializeFromNode(realm, nationsNode);
        realm.setNationManager(nationManager);

        Node playersNode = XMLConverterUtility.findNode(node, "Players");
        PlayerManager playerManager = new PlayerManager();
        (new PlayerManagerXMLWrapper(playerManager)).initializeFromNode(realm, playersNode);
        realm.setPlayerManager(playerManager);

        Node diplomacyNode = XMLConverterUtility.findNode(node, "diplomacy");
        Diplomacy diplomacy = (new DiplomacyXMLConverter()).initializeFromNode(realm, diplomacyNode);
View Full Code Here

Examples of org.freerealm.player.PlayerManager

        realm.setUnitTypeManager(unitTypeManager);

        NationManager nationManager = new NationManager();
        (new NationManagerXMLWrapper(nationManager)).initializeFromNode(realm, getRootNodeFromFile(configProperties.getProperty("nations_filename")));
        realm.setNationManager(nationManager);
        realm.setPlayerManager(new PlayerManager());
        realm.setDiplomacy(new Diplomacy());
        realm.setNumberOfTurns(0);
        realm.setHistory(new FreeRealmHistory());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.