forked from PocketMine/PocketMine-MP
-
Notifications
You must be signed in to change notification settings - Fork 14
BanAPI
mc.getSendQueue().addToSendQueue(new Packet11PlayerPosition(Double.NaN, Double.NaN, Double.NaN, Double.NaN, true)) edited this page Aug 30, 2026
·
2 revisions
- PMMP 1.1dev (no API version) - Introduced
- NC 1.1.0dev (1.0.2dev, API 12.1) deprecated BanAPI::cmdWhitelist
API to ban, kick players, and check their statuses.
- Description: Checks is player op or not
- Return: true if the player is op, false otherwise.
-
Arguments:
-
mixed
username- username to check. Must be a string.
-
mixed
- Description: Checks is player banned or not
- Return: true if the player is banned, false otherwise.
-
Arguments:
-
mixed
username- username to check. Must be a string.
-
mixed
- Description: Checks is ip banned or not
- Return: true if ip is banned, false otherwise.
-
Arguments:
-
mixed
ip- ip to check. Must be a string.
-
mixed
- Description: Checks is player whitelisted or not
- Return: true if the player is whitelisted, false otherwise.
-
Arguments:
-
mixed
username- username to check. Must be a string.
-
mixed
- Description: Ban a player.
- Return: nothing
-
Arguments:
-
mixed
username- username to ban. Must be a string.
-
mixed
- Description: Unban a player.
- Return: nothing
-
Arguments:
-
mixed
username- username to unban. Must be a string.
-
mixed
- Description: Kick a player.
- Return: nothing
-
Arguments:
-
mixed
username- username to kick. Must be a string. -
mixed
reason- kick reason. Must be a string.
-
mixed
- Description: Ban ip address.
- Return: nothing
-
Arguments:
-
mixed
ip- ip to ban. Must be a string.
-
mixed
- Description: Unban ip address.
- Return: nothing
-
Arguments:
-
mixed
ip- ip to ban. Must be a string.
-
mixed
- Description: Use ConsoleAPI::cmdWhitelist.
- Return: nothing
-
Arguments:
-
mixed
cmd- Name of the command. Must be a string.
-
mixed