A simple plugin to allow random teleportation on your server. It always sends players to a safe location. It also caches safe locations, so there is no lag when teleporting players!
Simply place the plugin in your plugins folder! If you have any issues with players being kicked for flying, enable flight in your server.properties file!
![[IMG]](/proxy/image?url=https%3A%2F%2Fgithub.com%2Fbeanbeanjuice%2FbeanRTP%2Fblob%2Fmaster%2FImages%2FFinished%2FFeatures.png%3Fraw%3Dtrue)
-
Instant Teleportation
-
Safe Locations
-
Customizable Messages
-
Smart Cooldown System
![[IMG]](/proxy/image?url=https%3A%2F%2Fgithub.com%2Fbeanbeanjuice%2FbeanRTP%2Fblob%2Fmaster%2FImages%2FFinished%2FPermissions.png%3Fraw%3Dtrue)
- beanRTP.use - Use of the /rtp command.
- beanRTP.others - Use of the /rtp (name) command.
- beanRTP.help - Access to the /rtp help command.
- beanRTP.reload - Use of the /rtp reload command.
- beanRTP.bypass.cooldown - Bypasses the cooldown.
- beanRTP.bypass.timer - Bypasses the timer.
![[IMG]](/proxy/image?url=https%3A%2F%2Fgithub.com%2Fbeanbeanjuice%2FbeanRTP%2Fblob%2Fmaster%2FImages%2FFinished%2FConfiguration.png%3Fraw%3Dtrue)
config.yml
Code (YAML):
# =================================
# beanRTP
# =================================
prefix
: '&8
[&bbeanRTP&8
] '
# Minimum distance to teleport from the player's current location.
minimum-distance-from-border-center
: 1000
# Allowed Worlds. This is case-sensitive.
allowed-worlds
:
- world
- world_nether
- world_the_end
# Cooldown in seconds.
cooldown-time
: 300
# Countdown time in seconds.
countdown-time
: 10
# Permissions:
# beanRTP.use - Use of the /rtp command.
# beanRTP.bypass.cooldown - Bypasses the cooldown.
# beanRTP.reload - Use of the /rtpreload command.
# beanRTP.others - Use of the /rtp (name) command.
# beanRTP.bypass.timer - Bypasses the timer.
# beanRTP.help - Access to the /rtp help command.
# DO NOT TOUCH THIS
file-version
: 1
messages.yml
Code (YAML):
# Messages
no-permission
: '&cYou do not have permission to use this command.'
starting-teleportation
: '&3Teleportation is starting in &a
{seconds
} &3seconds
...'
successful-teleportation
: '&aYou have been successfully teleported!'
unsuccessful-teleportation
: '&cTeleportation was unsuccessful. Please try again.'
other-successful-teleportation
: '&a
{player
} has been successfully teleported.'
other-unsuccessful-teleportation
: '&cThere was an error teleporting
{player
}. Please try again.'
moved-during-teleport
: '&cYou moved! Cancelling teleportation.'
cooldown
: '&cSorry, you are on a cooldown for &b
{seconds
} &cmore seconds.'
successful-reload
: '&aThe plugin has been successfully reloaded.'
unknown-command
: '&cThis is an unknown command. Please type &a/rtp help &cfor more information.'
not-allowed-world
: '&cSorry, you cannot do that in this world.'
not-allowed-world-others
: '&cSorry,
{player
} is in a disabled world.'
already-teleporting
: '&cYou cannot execute this command. You are already teleporting.'
# Help commands
help
:
- '&aDisplaying help commands
...'
- '&6/rtp&a
: Teleports you to a random location.'
- '&6/rtp (player)&a
: Teleports the selected player to a random location.'
- '&6/rtp reload&a
: Reloads the config file.'
- '&6/rtp setspawn&a
: Sets the spawn location in config. You need this in order for the plugin to work properly.'
- '&6/rtp help&a
: Displays these messages.'
- '&c&oNote&r&c
: If you do not do /rtp setspawn in each world, it will use the default coordinates of X = 0 and Z = 0.'
# DO NOT TOUCH THIS
file-version
: 1