Sueta
AD

AdvancedRandomTeleport | Fast, safe and customizability RTP

1.01

Randomly teleport to safe location. All messages and settings is customizability.

·Plugin

Advanced Random Teleport
Source code Russian thread

upload_2018-4-6_16-8-41.png
Designed MaxCode team for general use.


Description:

This is a very convenient plugin for a random teleport. There are all the necessary functions for comfortable use by you and your players.

Features:

  • Effective finding of a random point => low load on the server.
  • Adjusting the blocks that must be avoided (lava, water, air, etc.) for the safety of players.
  • Regulating regions WorldGuard, where the plugin will not teleport.
  • Ability to disable the plugin in certain worlds.
  • Convenient regulation of the maximum and minimum values of X and Z, which allows you to specify for any random teleportation absolutely any rectangular/square area.
  • Smart delay on the /rtp command. Can be adjusted separately for each permission group.
  • Customization of all messages can be adjusted for you.

Commands:

  • /rtp - teleport to random location
  • /rtp <player> - teleport target player to random location
  • /rtp reload - reload config and language files.

Permissions:

  • art.self - permission to use /rtp
  • art.other - permission to use /rtp <player>
  • art.reload - permission to use /rtp reload
  • art.bypasscd - permission to bypass cooldown.
  • art.cooldown.<название> - permission to custom cooldown (more about this in config.yml)

Configuration and language:

config.yml
# The prefix of the plugin, which will be displayed before some messages
prefix: '&f[&6RTP&f]'

# Here, you can set the minimum and maximum values for X and Z.
# This will allow you to select any rectangular area on the map for /rtp
x-max: 8000
x-min: -8000
z-max: 8000
z-min: -8000

# Here you can disable cooldown for /rtp
cooldown-enabled: true

# Here you can specify the standard cooldown for /rtp
# Time must be specified using s (seconds), m (minutes), h (hours), d (days)
# Time can also be combined, for example 2d 23h 43m 27s
standart-cooldown: 20m

# Here you can specify a separate cooldown for groups.
# To do this, enter the names of custom cooldowns, and after
# Give each group their own cooldown.
# To do this, use the rights of the form: art.cooldown.<name>
# For example: art.cooldown.vip
groups-cooldown:
  vip: 15m
  premium: 10m

# Here you can disable /rtp in certain worlds.
disabled-worlds:
  - WORLD_NETHER

# Here you can specify which blocks the plugin will not teleport.
# Thus, you can protect players.
avoid-blocks:
  - AIR
  - LAVA
  - STATIONARY_LAVA
  - WATER
  - STATIONARY_WATER
  - WOOD
  - WOOL
  - GLASS
  - COBBLESTONE
  - LEAVES
  - LEAVES_2

# Here you can turn off WorldGuard region checking if you do not need it.
enable-worldguard-cheks: true

# Here you can specify which regions the plugin will NOT teleport.
disallowed-regions:
  - spawn
language.yml
messages:
  no-permissions: '&cYou cant''t use this command!'
  only-players: '&cFrom console you can use only &b/rtp <player>'
  player-not-online: '&cPlayer &e%player% &cnot online!'
  wait-cooldown: '&cYou can use it again in only &a%time%'
  world-disabled: '&cRandom teleportation can not be used in this world!'
  teleport-self: '&fYou were randomly teleported to coordinates: &c%coords%'
  teleported-by-other: '&fAdmin randomly teleports you to coordinates: &c%coords%'
  you-teleported-other: '&eYou randomly teleported %player% &eto coordinates: &a%coords%'
  reload: '&aConfig and language successfully reloaded!'

Similar projects

Plugin →