Package com.pridemc.games.arena

Examples of com.pridemc.games.arena.Arena


     
      String aname = args[1];
     
      if (!ArenaConfig.getArenaNames().contains(aname)) {

        ArenaManager.addArena(new Arena(aname));
     
        Core.instance.getEditing().put(player, aname);

        player.sendMessage(ChatColor.GOLD + "[" + ChatColor.AQUA + "Pride Games" + ChatColor.GOLD + "] " +
        ChatColor.YELLOW +  "New arena " + aname + " succesfully created! You are now editing this arena as well. To stop editting, type" + ChatColor.GOLD + " /arena edit");
View Full Code Here


    if (player.hasPermission("pridegames.admin"))
      return;

    if (ArenaManager.isInArena(player.getName())) {
      Arena arena = ArenaManager.getArenaPlayerIsIn(player.getName());
      if (arena.getState().canEditBlocks()) { // The arena is allowing editing
       
        placed.put(block.getLocation(), 0); //TODO
        return;
       
      }
View Full Code Here

  public void onEntityDamageByEntity(EntityDamageByEntityEvent event) {
    Entity defender = event.getEntity();
    if (defender instanceof Player) {
      Player defenderPlayer = (Player)defender;
      if (ArenaManager.isInArena(defenderPlayer.getName())) {
        Arena arena = ArenaManager.getArenaPlayerIsIn(defenderPlayer.getName());
        if (!arena.getState().canPvP()) {
          event.setCancelled(true);
        }
      }
    }
  }
View Full Code Here

    if (player.hasPermission("pridegames.admin"))
      return;

    if (ArenaManager.isInArena(player.getName())) {
      Arena arena = ArenaManager.getArenaPlayerIsIn(player.getName());
      if (arena.getState().canEditBlocks()) { // The arena is allowing editing
        broken.put(block.getLocation(), block.getTypeId()); //TODO
        return;
      }
    }
View Full Code Here

TOP

Related Classes of com.pridemc.games.arena.Arena

Copyright © 2018 www.massapicom. 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.