Added a new command /randomteleport teleport that will allow players to randomly teleport in addition to right-clicking the RandomTeleport item (needs to have the permission, "randomteleport.teleport").
I've also added some additional messaging to make things clearer to the player.
Here is the latest config.yml
Code (YAML):
# RandomTeleport - Configuration
config
:
# If enabled, gives player RandomTeleport item on joining the server for the first time
shouldGiveTeleportItemOnFirstJoin
: true
# If enabled, message the player that they have been teleported to world<x, y, z)
shouldMessagePlayerOnRandomTeleport
: true
# RandomTeleport - Messages
messages:
prefix
:
"&8[&bRandomTeleport&8]"
noPermission
:
"%prefix% &cYou do not have permission to use that command!"
reloadConfig
:
"%prefix% &aYou have successfully reloaded the plugin config!"
consoleCannotUse
:
"%prefix% &cConsole cannot use that command!"
playerOfflineOrDoesNotExist
:
"%prefix% &cPlayer could not be found!"
randomTeleportItemGiven
:
"%prefix% &aYou have given a RandomTeleport item!"
randomTeleportItemReceived
:
"%prefix% &aYou have received a RandomTeleport item!"
randomTeleportPerformed
:
"%prefix% &aYou have been teleported to %world%<%x%, %y%, %z%>"
# RandomTeleport - Item
item
:
# Defines what the item will be, default is COMPASS
material
:
"COMPASS"
# Defines what the display name will be, color codes are supported
displayName
:
"&8[&bRandomTeleport&8]"
# Defines what the item lore will be, color codes are supported
lore
:
-
"&cRight-click to use this item."
# RandomTeleport - World
world
:
# Defines which world the teleport will take place in
name
:
"world"
# Defines the maximum of the teleport range (Y will be determined automatically)
size:
X
: 5000
Z
: 5000