Ejemplo n.º 1
0
 /**
  * Checks if the Player has Permission for this permission.
  *
  * @param permission to check
  * @return true if has, false if not.
  */
 public boolean hasPermission(String permission) {
   if (isOnline()) {
     return plugin.getPermissionManager().checkPermissionsSilent(getPlayer(), permission);
   } else {
     return plugin.getPermissionManager().checkPermissionsSilent(playerName, permission);
   }
 }
Ejemplo n.º 2
0
 public static void closeAndResync(Player player) {
   RacesAndClasses plugin = RacesAndClasses.getPlugin();
   new InventoryResync(player).runTaskLater(plugin, 2);
 }
Ejemplo n.º 3
0
 /**
  * Sets the Class of this player.
  *
  * @param container to set
  * @return true if worked
  */
 public boolean setClass(ClassContainer container) {
   return plugin.getClassManager().addPlayerToHolder(this, container.getDisplayName(), true);
 }
Ejemplo n.º 4
0
 /** Returns the Class of the Player */
 public ClassContainer getclass() {
   return (ClassContainer) plugin.getClassManager().getHolderOfPlayer(this);
 }
Ejemplo n.º 5
0
 /**
  * Returns the Race of the Player
  *
  * @return race
  */
 public RaceContainer getRace() {
   return (RaceContainer) plugin.getRaceManager().getHolderOfPlayer(this);
 }
Ejemplo n.º 6
0
 public RaCPlayer(UUID playerUUID, String playerName) {
   this.playerUUID = playerUUID;
   this.playerName = playerName;
   this.plugin = RacesAndClasses.getPlugin();
 }
Ejemplo n.º 7
0
 /**
  * Returns the Hotkey Inventory associated to this player.
  *
  * @return the associated HotKey Inv.
  */
 public HotKeyInventory getHotkeyInventory() {
   return plugin.getHotkeyManager().getInv(this);
 }
Ejemplo n.º 8
0
 public PlayerSkillTreeManager getSkillTreeManager() {
   return plugin.getPlayerManager().getContainer(this).getSkillTreeManager();
 }
Ejemplo n.º 9
0
 /**
  * Returns the PlayerPetmanager of the Player.
  *
  * @return the PlayerPetManager.
  */
 public PlayerPetManager getPlayerPetManager() {
   return plugin.getPlayerManager().getContainer(this).getPlayerPetManager();
 }
Ejemplo n.º 10
0
 /**
  * Returns the Health manager
  *
  * @return Health Manager.
  */
 public HealthManager getHealthManager() {
   return plugin.getPlayerManager().getContainer(this).getHealthManager();
 }
Ejemplo n.º 11
0
 /**
  * Returns the Scoreboard Manager of the player.
  *
  * @return the scoreboard Manager.
  */
 public PlayerRaCScoreboardManager getScoreboardManager() {
   return plugin.getPlayerManager().getContainer(this).getPlayerScoreboardManager();
 }
Ejemplo n.º 12
0
 /**
  * Returns the ArrowManager of the Player
  *
  * @return the arrow manager
  */
 public ArrowManager getArrowManager() {
   return plugin.getPlayerManager().getContainer(this).getArrowManager();
 }
Ejemplo n.º 13
0
 /**
  * Returns the ActionBar of the Player
  *
  * @return the Actionbar Manager.
  */
 public PlayerActionBarDisplay getActionbarDisplay() {
   return plugin.getPlayerManager().getContainer(this).getActionbarDisplay();
 }
Ejemplo n.º 14
0
 /**
  * Returns the OwnManaManager of the Player.
  *
  * @return
  */
 public ManaManager getManaManager() {
   return plugin.getPlayerManager().getContainer(this).getSpellManager().getManaManager();
 }
Ejemplo n.º 15
0
 /**
  * Sets the new Current channel.
  *
  * @param newChannel to set.
  */
 public void setCurrentChatChannel(String newChannel) {
   plugin.getChannelManager().changeCurrentChannel(this, newChannel);
 }
Ejemplo n.º 16
0
 /**
  * Returns the current channel.
  *
  * @return current channel
  */
 public String getCurrentChatChannel() {
   return plugin.getChannelManager().getCurrentChannel(this);
 }