forked from PocketMine/PocketMine-MP
-
Notifications
You must be signed in to change notification settings - Fork 14
ServerAPI
mc.getSendQueue().addToSendQueue(new Packet11PlayerPosition(Double.NaN, Double.NaN, Double.NaN, Double.NaN, true)) edited this page Aug 27, 2026
·
2 revisions
WIP
- Args: None
- Returns PocketMinecraftServer instance.
ServerAPI::request();
- Args: (event, handler, priority = 5)
event - name of the event, handler - Array, priority - optional value, Integer
- Returns: None
addHandler("player.block.break", array($this, "handleEvent"));
addHandler("player.quit", array($this, "handleEvent"), 1);
- Args: (delay, callback, data = array(), repeat = false, eventName = "server.schedule")
delay - Integer, callback - callable, data - optional value, Array, repeat - optional value, Boolean, eventName - optional value, name of the event
- Returns: counter of scheduled event + 1
- contains instance of QueryAPI
- contains instance of QueryHandler
- contains instance of ConsoleAPI
- contains instance of LevelAPI
- contains instance of BlockAPI
- contains instance of ChatAPI
- contains instance of BanAPI
- contains instance of EntityAPI
- contains instance of TimeAPI
- contains instance of PlayerAPI
- contains instance of TileAPI
- contains instance of AchievementAPI