XUTweaker
Link to xutweaker
The XUTweaker package adds several static utility methods.
Importing the package
Link to importing-the-package
If you want to shorten method calls or encounter any issues you might need to import the package.
You can do so using
ZenScript Copyimport extrautilities2.Tweaker.XUTweaker;
Methods
Link to methods
Allow survival flight
Link to allow-survival-flight
Allows Flight for all players, permanently.
ZenScript Copyextrautilities2.Tweaker.XUTweaker.allowSurvivalFlight();
Disable Nether Portals
Link to disable-nether-portals
Prevents Nether portals (and all portals that use the PortalSpawnEvent) from spawning, permanently.
ZenScript Copyextrautilities2.Tweaker.XUTweaker.disableNetherPortals();
Check if a player is a fake Player
Link to check-if-a-player-is-a-fake-player
Returns a boolean stating if the player is a fake Player.
Requires an IPlayer argument.
ZenScript Copyextrautilities2.Tweaker.XUTweaker.isPlayerFake(player);
Open a books screen for the player
Link to open-a-books-screen-for-the-player
Tries to open the written book screen to the given player.
Returns a boolean stating if the command was executed correctly.
Requires an IPlayer argument.
Also requires a string[] argument that will be the pages.
ZenScript Copyextrautilities2.Tweaker.XUTweaker.openBookScreen(player, pages);
extrautilities2.Tweaker.XUTweaker.openBookScreen(player, ["Page 1", "Page 2"]);