open source

This commit is contained in:
SuperRonanCraft
2020-01-13 20:24:33 -05:00
parent b7a23d05f3
commit 964e1bfc20
39 changed files with 2600 additions and 12 deletions

View File

@@ -0,0 +1,78 @@
# BetterRTP plugin by SuperRonanCraft! (Join my Public Server mc.RonanCraft.net) #
# Please give me credit, I'm a first time coder, and would love to see more discussions on my Spigot page! #
Language-File: 'en.yml'
Settings:
## Respect WorldGuard areas # IN-PROGRESS
RespectWorldGuard: false
## Respect GriefPrevention areas # COMING SOON
RespectGriefPrevention: false
## Respect Faction areas # COMING SOON
RespectSavageFactions: false
## Must be a positive integer #
MinRadius: 25
## Maximum amount of tries before BetterRTP gives up and sends a NotSafeMessage #
MaxAttempts: 15
## Enabled or disabled cooldown timer, time is in SECONDS #
Cooldown:
Enabled: true
Time: 10
## Time between command and actually rtp'ing, time is in SECONDS. Set to "0" to disable delay timer #
Delay:
Time: 5
CancelOnMove: true
DisableUpdater: false
Default:
UseWorldBorder: true
## "Biomes: []" means all biomes are allowed! #
## Biomes are optional, more biomes at https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/block/Biome.html #
Biomes: []
MaxRadius: 100
MinRadius: 10
## If "UseWorldBorder" is set to true above, these values WILL be ignored! Except Biomes! #
CenterX: 0
CenterZ: 0
## Blocks BetterRTP will NOT teleport onto. More Blocks at: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html #
BlacklistedBlocks:
- stationary_water
- stationary_lava
- water
- lava
- cactus
- leaves
- leaves_2
- air
## Worlds to NOT allow /rtp in, unless there is an override to another enabled world #
DisabledWorlds:
- prison
- creative
## Worlds you want to have a custom min/max and spawn center in #
## [MaxRadius] and [MinRadius] MUST be positive! These cannot be equal to each other!
CustomWorlds:
- world:
UseWorldBorder: false
## If UseWorldBorder is true, everything will be ignored EXEPT "MinRadius"!
MaxRadius: 1000
MinRadius: 100
CenterX: 0
CenterZ: 0
- nether:
MaxRadius: 100000
MinRadius: 1000
CenterX: 123
CenterZ: -123
## Biomes are optional, but useful! More biomes: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/block/Biome.html
Biomes:
- 'desert'
- 'forest'
## Override a world and rtp a player executing the command in one world, to another
Override:
#FORMAT <CURRENT>:<OTHER>
world_nether: 'world'
creative: 'world'

View File

@@ -0,0 +1,15 @@
Economy:
## Enable world charges? ALL Worlds included, even custom worlds!
Enabled: false
## Set to "0" to not charge for rtp, "Success.Bypass" message will be sent!
## Give players the permission "betterrtp.eco.bypass" to bypass economy
Price: 5
CustomWorlds:
## Enable custom world charging
Enabled: true
Worlds:
## PlayerWorld will be charged "5" when typing /rtp, if they do not have "betterrtp.eco.bypass"
world: 5
## Setting the price to "0" will make the "Success.Bypass" message show
world_end: 0

View File

@@ -0,0 +1,21 @@
<p align="center">
<b><a>Welcome to BetterRTP's language files!</a></b>
</p>
## Wheres the Wiki?
The wiki is available [here](../../wiki)!
## Want to Contribute translating?
Fork one of the language files above and help translate!
<p align="center">
<b>Chat with us on Discord</b><br/>
<a href="https://discord.gg/8Kt4wKm"><img src="https://img.shields.io/discord/182633513474850818.svg?longCache=true&style=flat-square&label=Discord" alt="Discord" /></a><br/>
<b>Have a Suggestion? Make an issue!</b><br/>
<a href="../../issues"><img src="https://img.shields.io/github/issues-raw/SuperRonanCraft/BetterRTP.svg?longCache=true&style=flat-square&label=Issues" alt="GitHub issues" /></a><br/>
<br/>
<a href="https://www.spigotmc.org/resources/36081/">Thank you for viewing the Wiki for BetterRTP!</a><br/>
<i><a>Did this wiki help you out? Please give it a <b>Star</b> so I know it's getting use!</a></i><br/>
<br/>
<b><i><a href="https://www.spigotmc.org/resources/authors/superronancraft.13025/">Check out my other plugins!</a></i></b>
</p>

View File

@@ -0,0 +1,64 @@
Messages:
Prefix: '&7[&6BetterRTP&7] '
Success: ## Placeholders! %x% %y% and %z% are the x, y, and z coordinates that the player is being teleported to! #
Paid: '&aYou have been tp''d to&7 x=%x% y=%y% z=%z% for &c$%price%&7 in &f%attempts% &7attempts!'
Bypass: '&aYou have been tp''d to&7 x=%x% y=%y% z=%z% in &f%attempts% &7attempts'
Failed:
Price: '&cCould not rtp because of insufficent funds! &7You must have atleast $%price% &7to rtp!'
NotSafe: '&cCould not find safe spot within %attempts% attempts! &7You were not RTP''d!'
Other:
Success: '&a%player% has been tp''d to&7 x=%x% y=%y% z=%z% in &f%attempts% &7attempts!'
NotSafe: '&cCould not find safe spot within %attempts% attempts! &7%player% was not rtp''d!'
Biome: '&cSeems like the biome&7 %biome%&c does not exist! &7Try using the tab list!'
Reload: '&eConfig reloaded successfully!'
NoPermission:
Basic: '&cSorry! &7You don''t have permission to use this command!'
World: '&cSorry! &7You are not allowed rtp in the %world% world!'
## %world% is the world the player is in that is disabled to rtp in! #
DisabledWorld: '&cDisabled World %world%! &7Could not RTP!'
Cooldown: '&cSorry! &7You can''t rtp for another &c%time% &7seconds!'
Invalid: '&cInvalid argument. Try ''/%command% help'''
NotOnline: '&cThe player &7%player% &cis not online!'
Delay: '&aTeleporting in &f%time% &aseconds! Don''t move!'
Moved: '&cYou have moved! &7RTP was cancelled!'
NotExist: '&cLooks like the world &7%world% &cdoesn''t exist!'
Already: '&cWhoops! &7Looks like you are already rtp''ing, have some patience!'
Sign: '&7Command sign has been created! &7Command is... ''&f/rtp %command%&7'''
Titles:
Enabled: true
Delay:
## Setting to also send the chat message, ignores the Enabled setting
SendChatMessage: true
## Both support %player% placeholders
Title: '&6BetterRTP by SRC'
Subtitle: '&fTeleporting in %time% seconds!'
Success:
## Setting to also send the chat message, ignores the Enabled setting
SendChatMessage: true
## Both support %player% %x% %y% and %z% placeholders
Title: '&6BetterRTP by SRC &7(%attempts%)'
Subtitle: '&fTeleporting to x=%x% y=%y% z=%z%'
Help:
List:
- '&e&m------&r &6&lBetterRTP &8| &7Help &e&m------'
- ' &7- &e/%command% &7- Randomly teleports you!'
- ' &7- &e/%command% help &7- Shows help list'
##If the player has permission to rtp another player, this message will be added under the list!
Player: ' &7- &e/%command% player <player> [world] [biome1, biome2...] &7- Randomly teleport another player'
World: ' &7- &e/%command% world <world> [biome1, biome2...] &7- Randomly teleport in another world'
##If the player has permission to reload the plugin this message will be added under the list!
Biome: ' &7- &e/%command% biome <biome1, biome2...> &7- Randomly teleport withing these biomes'
Reload: ' &7- &e/%command% reload &7- Reloads the plugin'
Usage:
Player: '&cUsage&7: /%command% player <player> [world] [biome1, biome2]'
World: '&cUsage&7: /%command% world <world> [biome1, biome2...]'
Biome: '&cUsage&7: /%command% biome <biome1, biome2...>'
Sounds:
Enabled: true
## More sounds at https://www.spigotmc.org/wiki/cc-sounds-list/
Delay: 'entity_tnt_primed'
Success: 'entity_generic_explode'

View File

@@ -0,0 +1,64 @@
Messages:
Prefix: '&7[&6BetterRTP&7] '
## Placeholders! %x% %y% et %z% sont les coordonées x, y, et z auxquelles le joueur sera téléporté! #
Success:
Paid: '&aTu a été téléporter à&7 x=%x% y=%y% z=%z% pour &c$%price%&7 en &f%attempts% &7tentatives!'
Bypass: '&aTu a été téléporter à&7 x=%x% y=%y% z=%z% en &f%attempts% &7tentatives!'
Failed:
Price: '&cTu n''a pas pu être téléporter; Manque de fonds! &7Tu doit avoir au moins $%price% &7pour te téléporter!'
NotSafe: '&cImpossible de trouver un endroit sûr en %attempts% tentatives! &7Tu n''a pas été téléporter!'
Other:
Success: '&a%player% a été téléporter à&7 x=%x% y=%y% z=%z% em &f%attempts% &7tentatives!'
NotSafe: '&cImpossible de trouver un endroit sûr en %attempts% tentatives! &7%player% n''a pas été téléporter!'
Reload: '&eConfiguration rechargée avec succès!'
NoPermission:
Basic: '&cDésoler! &7Il te manque la permission pour utiliser cette commande'
World: '&cDésoler! &7Tu n''est pas autorisé à te téléporter dans le monde %world% !'
## %world% Est le monde dans lequel le joueur est téléporter ! #
DisabledWorld: '&cLe monde %world% est désactivé! &7Impossible de se téléporter!'
Cooldown: '&cDésoler! &7Tu ne peut pas te téléporter pour encore &c%time% &7secondes!'
Invalid: '&cArgument invalide. Essaye ''/%command% help'''
NotOnline: '&cLe joueur &7%player% &cn''est pas en ligne!'
Delay: '&aTéléportation dans &f%time% &asecondes! Ne bouge pas!'
Moved: '&cTu a bougé! &7Téléportation annulée!'
NotExist: '&cLe monde &7%world% &cn''existe pas!'
Already: '&cOups! &7Il semblerait que tu essaie déjà de te téléporter...Patiente un peu!'
Sign: '&7Command sign has been created! &7Command is... ''&f/rtp %command%&7'''
Titles:
Enabled: true
Delay:
## Paramètre pour aussi envoyer le message dans le chat, ignore le "Enabled" Paramètre #
SendChatMessage: true
## Soutien le %player% "placeholders" #
Title: '&6BetterRTP par SRC'
Subtitle: '&fTéléportation dans %time% secondes!'
Success:
## Paramètre pour aussi envoyer le message dans le chat, ignore le "Enabled" Paramètre #
SendChatMessage: true
## Soutien le %player% %x% %y% et %z% "placeholders" #
Title: '&6BetterRTP par SRC &7(%attempts%)'
Subtitle: '&fTéléportation vers x=%x% y=%y% z=%z%'
Help:
List:
- '&e&m------&r &6&lBetterRTP &8| &7Aide &e&m------'
- ' &7- &e/%command% &7- Te téléporte aléatoirement'
- ' &7- &e/%command% help &7- Affiche l''aide'
##Si le joueur a la permission de téléporter un autre joueur, ce message s'affiche dans l'aide aussi!
Player: ' &7- &e/%command% player <joueur> [monde] &7- Téléporte aléatoirement un autre joueur'
World: ' &7- &e/%command% world <monde> &7- Te téléporte aléatoirement dans un autre monde'
##Si le joueur a la permission de recharger le plugin, ce message s'affiche dans l'aide aussi!
Reload: ' &7- &e/%command% reload &7- Recharge le plugin!'
Usage:
Player: '&cUtilisation&7: /%command% player <joeur> [monde]'
World: '&cUtilisation&7: /%command% world <monde>'
Sounds:
Enabled: true
## Plus de sons à https://www.spigotmc.org/wiki/cc-sounds-list/
## Son à jouer lors de la téléportation avec délai ##
Delay: 'entity_tnt_primed'
##Son à jouer lorsque la téléportation à réussie ##
Success: 'entity_generic_explode'

View File

@@ -0,0 +1,57 @@
Messages:
Prefix: '&7[&6BetterRTP&7] '
Success:
Paid: '&aあなたは&c$%price%&aで&7x=%x% y=%y% z=%z% に&f%attempts%&7回の試行でTPされました'
Bypass: '&aあなたは&7x=%x% y=%y% z=%z% に&f%attempts%&7回の試行でTPされました'
Failed:
Price: '&c資金が不十分のためRTPできませんでした &7RTPには最低$%price%&7が必要です'
NotSafe: '&c%attempts%回の試行で安全な場所が見つかりませんでした! &7あなたははRTPされませんでした'
Other:
Success: '&a%player%が&7x=%x% y=%y% z=%z% に&f%attempts%&7回の試行でテレポートしました'
NotSafe: '&c%attempts%回の試行で安全な場所が見つかりませんでした! &7%player%はRTPされませんでした'
Biome: '&cSeems like the biome&7 %biome%&c does not exist! &7Try using the tab list!'
Reload: '&eコンフィグは正常にリロードされました'
NoPermission:
Basic: '&cごめんなさい &7このコマンドを使う権限がありません'
World: '&cごめんなさい &7ワールド%world%ではrtpが許可されていません'
DisabledWorld: '&cワールド%world%は無効です! &7RTPできませんでした'
Cooldown: '&cごめんなさい &7あなたは&c%time%&7秒間RTPできません'
Invalid: '&c無効な引数。 ''/%command% help''を試してください。'
NotOnline: '&cプレイヤー&7%player%&cはオンラインではありません'
Delay: '&f%time%&a秒でテレポートします 動かないで!'
Moved: '&cあなたは移動しました &7RTPはキャンセルされました'
NotExist: '&cワールド&7%world%&cが存在しないようです。'
Already: '&cおっと &7あなたはすでにRTPしているように見えます。'
Sign: '&7Command sign has been created! &7Command is... ''&f/rtp %command%&7'''
Titles:
Enabled: true
Delay:
SendChatMessage: true
Title: '&6BetterRTP by SRC'
Subtitle: '&f%time%秒でテレポート!'
Success:
SendChatMessage: true
Title: '&6BetterRTP by SRC &7(%attempts%)'
Subtitle: '&fx=%x% y=%y% z=%z% にテレポート'
Help:
List:
- '&e&m------&r &6&lBetterRTP &8| &7ヘルプ&e&m------'
- ' &7- &e/%command% &7- あなたをランダムテレポートする!'
- ' &7- &e/%command% help &7- ヘルプを見る'
Player: ' &7- &e/%command% player <player> [world] &7- 他のプレイヤーをランダムテレポート'
World: ' &7- &e/%command% world <world> &7- 他のワールドにランダムテレポート'
Biome: ' &7- &e/%command% biome <biome1, biome2...> &7- Randomly teleport withing these biomes'
Reload: ' &7- &e/%command% reload &7- プラグインをリロード'
Usage:
Player: '&c使い方&7: /%command% player <プレイヤー> [ワールド]'
World: '&c使い方&7: /%command% world <ワールド>'
Biome: '&cUsage&7: /%command% biome <biome1, biome2...>'
Sounds:
Enabled: true
## More sounds at https://www.spigotmc.org/wiki/cc-sounds-list/
Delay: 'entity_tnt_primed'
Success: 'entity_generic_explode'

View File

@@ -0,0 +1,65 @@
Messages:
Prefix: '&7[&6BetterRTP&7] '
## Placeholders! %x% %y% and %z% are the x, y, and z coordinates that the player is being teleported to! #
Success:
Paid: '&aВас телепортировало на&7 x=%x% y=%y% z=%z% за &c$%price%&7, за &f%attempts% &7попыток!'
Bypass: '&aВас телепортировало на&7 x=%x% y=%y% z=%z% за &f%attempts% &7попыток'
Failed:
Price: '&cУ вас недостаточно денег для телепортации! &7У вас должно быть хотябы $%price% &7для rtp!'
NotSafe: '&cНе удалось найти безопасное место за %attempts% попыток! &7Вас не телепортировало!'
Other:
Success: '&a%player% был телепортирован на&7 x=%x% y=%y% z=%z% за &f%attempts% &7попыток!'
NotSafe: '&cНе удалось найти безопасное место за %attempts% попыток! &7%player% не был телепортирован!'
Biome: '&cSeems like the biome&7 %biome%&c does not exist! &7Try using the tab list!'
Reload: '&eКонфиг удачно перезагружен!'
NoPermission:
Basic: '&cИзвините! &7У вас недостаточно прав для использования этой команды!'
World: '&cИзвините! &7Вам запрещено использовать rtp в мире %world%!'
## %world% is the world the player is in that is disabled to rtp in! #
DisabledWorld: '&cОтключенный мир %world%! &7Не удалось телепортироваться!'
Cooldown: '&cИзвините! &7Вы не сможете использовать rtp ближайшие &c%time% &7сек.!'
Invalid: '&cНеправильные параметры. Попробуйте ''/%command% help'''
NotOnline: '&cИгрок &7%player% &cне онлайн!'
Delay: '&aТелепортация через &f%time% &aсек.! Не двигайтесь!'
Moved: '&cВы подвинулись! &7RTP отменено!'
NotExist: '&cПохоже что мир &7%world% &cне существует!'
Already: '&cУуупс! &7Похоже вы уже телепортируетесь. Имейте терпение!'
Sign: '&7Command sign has been created! &7Command is... ''&f/rtp %command%&7'''
Titles:
Enabled: true
Delay:
## Setting to also send the chat message, ignores the Enabled setting
SendChatMessage: true
## Both support %player% placeholders
Title: '&6BetterRTP от SRC'
Subtitle: '&fТелепортация через %time% сек.!'
Success:
## Setting to also send the chat message, ignores the Enabled setting
SendChatMessage: true
## Both support %player% %x% %y% and %z% placeholders
Title: '&6BetterRTP от SRC &7(%attempts%)'
Subtitle: '&fТелепортация к x=%x% y=%y% z=%z%'
Help:
List:
- '&e&m------&r &6&lBetterRTP &8| &7Помощь &e&m------'
- ' &7- &e/%command% &7- случайно телепортирует вас!'
- ' &7- &e/%command% help &7- показывает этот список'
##If the player has permission to rtp another player, this message will be added under the list!
Player: ' &7- &e/%command% player <игрок> [мир] &7- случайно телепортирует игрока'
World: ' &7- &e/%command% world <мир> &7- случайно телепортирует в другой мир'
##If the player has permission to reload the plugin this message will be added under the list!
Biome: ' &7- &e/%command% biome <biome1, biome2...> &7- Randomly teleport withing these biomes'
Reload: ' &7- &e/%command% reload &7- перезагружает плагин'
Usage:
Player: '&cИспользование&7: /%command% player <игрок> [мир]'
World: '&cИспользование&7: /%command% world <мир>'
Biome: '&cUsage&7: /%command% biome <biome1, biome2...>'
Sounds:
Enabled: true
## More sounds at https://www.spigotmc.org/wiki/cc-sounds-list/
Delay: 'entity_tnt_primed'
Success: 'entity_generic_explode'

View File

@@ -0,0 +1,42 @@
permissions:
betterrtp.*:
children:
betterrtp.use: true
betterrtp.world: true
betterrtp.world.*: true
betterrtp.bypass.*: true
betterrtp.player: true
betterrtp.reload: true
betterrtp.updater: true
betterrtp.world:
description: RTP into other worlds
betterrtp.world.*:
description: RTP in all enabled worlds
betterrtp.world.<world>:
description: RTP in <world>
betterrtp.bypass.*:
children:
betterrtp.bypass.cooldown: true
betterrtp.bypass.delay: true
betterrtp.bypass.economy: true
betterrtp.use:
description: Use RTP command
default: true
betterrtp.player:
description: RTP another player
betterrtp.biome:
description: RTP to specific biomes
betterrtp.sign:
description: Ability to create an RTP sign
betterrtp.bypass.cooldown:
description: Bypass cooldowns
betterrtp.bypass.delay:
description: Bypass delays
betterrtp.bypass.economy:
description: Bypass economy
betterrtp.reload:
description: Reload the config
default: op
betterrtp.updater:
description: Get notification on new updates
default: op

View File

@@ -0,0 +1,51 @@
main: me.SuperRonanCraft.BetterRTP.Main
version: 2.9.3
name: BetterRTP
author: SuperRonanCraft
softdepend: [Vault, WorldGuard, GriefPrevention, Factions]
commands:
betterrtp:
aliases: [brtp, rtp]
description: Randomly teleport to a location
permissions:
betterrtp.*:
children:
betterrtp.use: true
betterrtp.world.*: true
betterrtp.bypass.*: true
betterrtp.player: true
betterrtp.reload: true
betterrtp.updater: true
betterrtp.biome: true
betterrtp.world.*:
description: RTP in all enabled worlds
betterrtp.bypass.*:
children:
betterrtp.bypass.cooldown: true
betterrtp.bypass.delay: true
betterrtp.bypass.economy: true
betterrtp.use:
description: Use RTP command
default: true
betterrtp.world:
description: Use world command
betterrtp.player:
description: RTP another player
betterrtp.biome:
description: RTP to specific biomes
betterrtp.sign:
description: Ability to create an RTP sign
betterrtp.bypass.cooldown:
description: Bypass cooldowns
betterrtp.bypass.delay:
description: Bypass delays
betterrtp.bypass.economy:
description: Bypass economy
betterrtp.reload:
description: Reload the config
default: op
betterrtp.updater:
description: Get notification on new updates
default: op

View File

@@ -0,0 +1,3 @@
Settings:
Enabled: false
Title: "[RTP]"