pies.cf

Class FBManager

Method Description Extra info
<pre>public double getPersonalBest(Player player, String mode)</pre> Get the players current personal best in a mode.  
<pre>public void setPersonalBest(Player player, String mode, double newpb)</pre> Set the players current personal best in a mode.  
<pre>public double getCoins(UUID playerUUID)</pre> Get the amount of coins the player currently has.  
<pre>public void addCoins(UUID playerUUID, double amountToAdd)</pre> Add or remove player coins / currency amountToAdd - Use negitive to remove coins.
<pre>public void buyBlock(Player player, Material material, int type)</pre> Buy a block from the shop.  
<pre>public void selectBlock(Player player, Material material, byte type)</pre> Set the player selected block.  
<pre>public boolean hasBlock(Player player, Material material, int type)</pre> Check if player owns a block.  
<pre>public void setPickaxe(Player player, Material material)</pre> Set the player selected pickaxe.  
<pre>public Material getPickaxe(Player player)</pre> Player current selected pickaxe.  
<pre>public boolean isPlaying(Player player)</pre> Player is currently in game or not.  
<pre>public String getTime(Player player)</pre> Get the current time on the players timer formatteed to 3 decimals.  
<pre>public int getBlocksPlaced(Player player)</pre> Get a number of how many blocks the player has placed.  
<pre>public String getCurrentMode(Player player)</pre> Get the current mode the player is in.  
<pre>public String getFormattedLBPosition(Player player, int pos)</pre> Get the formatted style of a leaderboard postion in any slot.  
<pre>public DecimalFormat getDefaultDF()</pre> Util.  
<pre>public void resetPlayer(Player player, boolean resetBlocks, boolean scored)</pre> Reset the player to spawn  
<pre>public void resetPlayerInventory(Player player)</pre> Reset the inventory in the player.  
<pre>public String getNextValidArena(String mode)</pre> Get the next arena in a mode that is not used and is setup correctly  
<pre>public void leave(Player player, boolean ignore, boolean sendLeaveMessage, boolean runEndCommands)</pre> Leave the player from the current game ignore - If true it will not send the player to lobby if bungeecord mode is enabled.
<pre>public void join(Player player, String mode)</pre> Join the player to the specified mode.  
<pre>public void join(Player player, String mode, String map)</pre> Join the player to the specified mode and map.  
<pre>public boolean isWatchingReplay(Player player)</pre> Check if the player is currently watching a replay.  
<pre>public boolean isReplayExist(Player player)</pre> Check if there is a replay currently attached to the user.  
<pre>public String getPrefix(boolean replay)</pre> Get the prefix of the plugin replay - Get the replay prefix.
<pre>public String getModeFullMessage()</pre> Get the message sent wehn the mode is full.  
<pre>public FileConfiguration getConfig()</pre> Get the plugins configuration file.