示例#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);
   }
 }
 public static void closeAndResync(Player player) {
   RacesAndClasses plugin = RacesAndClasses.getPlugin();
   new InventoryResync(player).runTaskLater(plugin, 2);
 }
示例#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);
 }
示例#4
0
 /** Returns the Class of the Player */
 public ClassContainer getclass() {
   return (ClassContainer) plugin.getClassManager().getHolderOfPlayer(this);
 }
示例#5
0
 /**
  * Returns the Race of the Player
  *
  * @return race
  */
 public RaceContainer getRace() {
   return (RaceContainer) plugin.getRaceManager().getHolderOfPlayer(this);
 }
示例#6
0
 public RaCPlayer(UUID playerUUID, String playerName) {
   this.playerUUID = playerUUID;
   this.playerName = playerName;
   this.plugin = RacesAndClasses.getPlugin();
 }
示例#7
0
 /**
  * Returns the Hotkey Inventory associated to this player.
  *
  * @return the associated HotKey Inv.
  */
 public HotKeyInventory getHotkeyInventory() {
   return plugin.getHotkeyManager().getInv(this);
 }
示例#8
0
 public PlayerSkillTreeManager getSkillTreeManager() {
   return plugin.getPlayerManager().getContainer(this).getSkillTreeManager();
 }
示例#9
0
 /**
  * Returns the PlayerPetmanager of the Player.
  *
  * @return the PlayerPetManager.
  */
 public PlayerPetManager getPlayerPetManager() {
   return plugin.getPlayerManager().getContainer(this).getPlayerPetManager();
 }
示例#10
0
 /**
  * Returns the Health manager
  *
  * @return Health Manager.
  */
 public HealthManager getHealthManager() {
   return plugin.getPlayerManager().getContainer(this).getHealthManager();
 }
示例#11
0
 /**
  * Returns the Scoreboard Manager of the player.
  *
  * @return the scoreboard Manager.
  */
 public PlayerRaCScoreboardManager getScoreboardManager() {
   return plugin.getPlayerManager().getContainer(this).getPlayerScoreboardManager();
 }
示例#12
0
 /**
  * Returns the ArrowManager of the Player
  *
  * @return the arrow manager
  */
 public ArrowManager getArrowManager() {
   return plugin.getPlayerManager().getContainer(this).getArrowManager();
 }
示例#13
0
 /**
  * Returns the ActionBar of the Player
  *
  * @return the Actionbar Manager.
  */
 public PlayerActionBarDisplay getActionbarDisplay() {
   return plugin.getPlayerManager().getContainer(this).getActionbarDisplay();
 }
示例#14
0
 /**
  * Returns the OwnManaManager of the Player.
  *
  * @return
  */
 public ManaManager getManaManager() {
   return plugin.getPlayerManager().getContainer(this).getSpellManager().getManaManager();
 }
示例#15
0
 /**
  * Sets the new Current channel.
  *
  * @param newChannel to set.
  */
 public void setCurrentChatChannel(String newChannel) {
   plugin.getChannelManager().changeCurrentChannel(this, newChannel);
 }
示例#16
0
 /**
  * Returns the current channel.
  *
  * @return current channel
  */
 public String getCurrentChatChannel() {
   return plugin.getChannelManager().getCurrentChannel(this);
 }