Manipulating the Player
-
As you know, you can manipulate a player with Bukkit/Spigot.
Like sending them fake sign/block packets, and all of that troll-type stuff
However Midnight Library can manipulate the player as well.
Lets start!
You can get a MidPlayerUtils variable by doing:
Code (Text):myMidLibVariable.getPlayerUtilities(myPlayer);
- Turning them invisible.
- Turning them invisible to players who dont have a certain permission.
- Turning them visible again.
- Changing the air location.
- Mount them on an entity.
- More in the future (and planned for v2)
MidPlayerUtils.invisibilize(); will turn the player invisible like VanishNoPacket except that its not VanishNoPacket.
MidPlayerUtils.invisibilize(Permission/String); will turn the player invisible only to people who do NOT have the permission aPermission. Has support both for permission plugins and normal plugins.
MidPlayerUtils.deinvisibilize(); can turn the player visible again.
MidPlayerUtils.mountOn(entity); will force the player to mount on an Entity.
MidPlayerUtils.setAirLocation(int); will teleport the player to the specified Y coordinate.
MidPlayerUtils.setAirLocation(int, TeleportCause); is the above one but with a teleport cause. - Loading...
- Loading...
XenCarta PRO
© Jason Axelrod from 8WAYRUN.COM