You are viewing an older version of the site. Click here to view
the latest version of this page. (This may be a dead link, if so, try the root page of the docs
here.)
== pbanned ==
Returns whether or not this player is banned. This will work with offline players, but the name must be exact. At this time, this function only works with the vanilla ban system. If you use a third party ban system, you should instead run the command for that plugin instead.
=== Vital Info ===
{| style="width: 40%;" cellspacing="1" cellpadding="1" border="1" class="wikitable"
|-
! scope="col" width="20%" |
! scope="col" width="80%" |
|-
! scope="row" | Name
| pbanned
|-
! scope="row" | Returns
| boolean
|-
! scope="row" | Usages
| player
|-
! scope="row" | Throws
| [[../objects/ms.lang.NotFoundException|ms.lang.NotFoundException]]
|-
! scope="row" | Since
| 3.3.0
|-
! scope="row" | Restricted
| Yes
|-
! scope="row" | Optimizations
| None
|}NOTICE: This function accepts UUIDs in place of player names, however due to lack of API from Mojang, some server software is not able to correctly associate a UUID with a player if the player has not recently been online. As such, it may not always be possible to ban or whitelist a player by UUID. Servers known to have this problem are Bukkit and Spigot. Furthermore, although this API functions, due to the limitations of the vanilla ban/whitelist system, it is recommended to use a 3rd party system or write your own.
=== Usages ===
pbanned(player)=== Examples === Sorry, there are no examples for this function! :(
Find a bug in this page? Edit this page yourself, then submit a pull request. (Note this page is automatically generated from the documentation in the source code.)