*Available Papi eCloud!
A simple expansion for PlaceholderAPI for retrieving details of another player not the calling player.
Placeholder:
%otherplayer_getname_<player>%
// added in 1.1.1 (case-insensitive and returns PNF if player does not exist on your server)
%otherplayer_displayname_<player>%
%otherplayer_gamemode_<player>%
%otherplayer_hasperm_<player>_perm_<permission.string>%
// added in 1.1
%otherplayer_haspotioneffect_<player>_effect_<effect_name>%
// added in 1.1 //see note*1
%otherplayer_health_<player>%
%otherplayer_hunger_<player>%
%otherplayer_<plr>_in_<x1>_<y1>_<z1>_<w>_<x2>_<y2>_<z2>%
// added in 2.0
// see note*6
%otherplayer_pinarea_<x1>_<y1>_<z1>_<wld>_<x2>_<y2>_<z2>%
// added in 2.0
// see note*6
%otherplayer_minarea_<x1>_<y1>_<z1>_<wld>_<x2>_<y2>_<z2>%
// added in 2.0
// see note*6
%otherplayer_ninarea_<x1>_<y1>_<z1>_<wld>_<x2>_<y2>_<z2>%
// added in 2.0
// see note*6
%otherplayer_einarea_<x1>_<y1>_<z1>_<wld>_<x2>_<y2>_<z2>%
// added in 2.0
// see note*6
%otherplayer_ip_<player>%
// added in 1.1
%otherplayer_iteminhand_<player>% // added in 1.1
%otherplayer_iteminoffhand_<player>%
// added in 1.1.3
%otherplayer_<player>_itemininvhasname_<name/material-name>%
// added in 1.3.0
// see note*2
%otherplayer_<player>_itemininvhasname_<name/material-name>_amount_<amount>%
// added in 1.3.0
// see note*3
%otherplayer_<player>_itemininvcontainsname_<string-to-match>%
// added in 1.3.0
// see note*4
%otherplayer_<player>_itemininvgetamount_<name/material-name>%
// added in 1.3.0
// see note*5
%otherplayer_level_<player>%
%otherplayer_locx_<player>%
%otherplayer_locy_<player>%
%otherplayer_locz_<player>%
%otherplayer_oxygen_<player>%
// added in 1.1
%otherplayer_spells_<player>%
%otherplayer_uuid_<player>%
%otherplayer_world_<player>%
- Replace <player> with the name of the player who's stats you desire.
- Spells returns "none" if no spells, or a list of spells from the bukkit api in title case separated by spaces.
eg: "Night_Vision Water_Breathing"
Also returns some error strings if errors caught:
"" - (empty string) Respective value does not exist
PNF - Player Not Found
PDNE - Placeholder Does Not Exist
Error_Check_Console - An unexpected error has occured. Check console for more info.
Note*1: List of potion effects
<here>.
Note*2: Returns PNF/true/false. Can be name assigned name of item or material name that matches
exactly.
Note*3: Returns PNF/true/false. If amount specified is less than 1, it will assume any amount.
Note*4: Returns PNF/true/false. Returns
first match that
contains provided string. Eg. Can be used to check if player has "chestplate" of any sort.
Note*5: Returns 0 or greater. Will add up multiple stacks if they match the name provided.
Note*6:
<plr>_in_area : boolean (true/false) if given player in area
pinarea : int - counts number of Players in area
minarea : int - counts number of Monsters in area
ninarea : int - counts number of Neutrals in area
einarea : int - counts number of Entities in area