portBlockers:testRegion-ALL:result:"LOCATION"inout:0newWorld:"testWorld"newX:0newY:65newZ:0message:"You are not permitted to teleport into or out of this location!"
The key line is the region name and the "cause" of teleportation (these match the causes given by the PlayerTeleportEvent.getCause() method and can be: 'ALL', 'COMMAND', 'END_PORTAL', 'ENDER_PEARL', 'NETHER_PORTAL', 'PLUGIN', or 'UNKNOWN') you wish to modify. You can list multiple causes here separated by commas (no spaces between).
result can be "LOCATION" or "RETURN", location meaning the player will be rerouted to a certain location when breaking these rules, return meaning they will go back to where they teleported from.
inout can be 0 (for both teleporting in and out), 1 (for in only) or 2 (for out only).
newWorld/X/Y/Z are the world name and x, y, z coordinates you with to reroute the offending player to (if result = LOCATION).
message is the message the player will get when they break the rule.
Comments
To post a comment, please login or register a new account.
Comments