Code Monkey home page Code Monkey logo

randomteleport's Introduction

Random Teleport

Teleport a player to a random (safe) location in the Minecraft world.

Features

  • World based teleports.
  • Teleport cooldown.
  • Pre generated random locations (instant teleports).
  • Adjustable queue. Determine yourself how many pre generated locations you want.
  • Everything customizable.
  • Full async chunkloading support for Paper servers.
  • Choose if a world requires a permission or not.

Supported plugins

  • FactionsUUID
  • WorldGuard
  • GriefPrevention
  • GriefDefender
  • RedProtect

Permissions

permissions:
  rtp.teleport.*:
    description: give all teleport permissions
    children:
      rtp.teleport.self: true
      rtp.teleport.other: true
      rtp.teleport.bypass: true
      rtp.teleport.world: true
  rtp.*:
    description: give all rtp commands
    children:
      rtp.teleport.*: true
      rtp.teleportdelay.bypass: true
      rtp.eco.*: true
  rtp.eco.*:
    description: bypass all economy restrictions
    children:
      rtp.eco.bypass: true
  rtp.admin.*:
    description: give all admin commands
    children:
      rtp.admin.removeworld: true
      rtp.admin.addworld: true
      rtp.admin.resetcooldown: true
      rtp.admin.reload: true
      rtp.admin.setprice: true
  rtp.teleport.self:
    description: random teleport yourself
  rtp.teleport.other:
    description: random teleport others
  rtp.teleport.world:
    description: random teleport to any world that doesnt require extra permissions
  rtp.teleport.bypass:
    description: bypass the cooldown
  rtp.teleportdelay.bypass:
    description: bypass initial tp delay
  rtp.eco.bypass:
    description: bypass economy costs
  rtp.admin.removeworld:
    description: allow admins to remove worlds from the config
  rtp.admin.addworld:
    description: allow admins to add worlds to the config
  rtp.admin.resetcooldown:
    description: allow admins to reset the cooldown timer of players
  rtp.admin.reload:
    description: allow admins to reload the plugin configs and repopulate queues
  rtp.admin.setprice:
    description: allow admins to set the teleport costs

alt text alt text alt text

Known issues

  • Config files will lose comments when adding/removing worlds through commands (SnakeYML limitation). Might or might not fix.
  • Setting a radius with all unsafe locations will cause the plugin to search indefinitely. There is no search limit.

Platforms

  • Spigot
  • Paper
  • Sponge (coming soon)

randomteleport's People

Contributors

darkeyedragon avatar dependabot-preview[bot] avatar dependabot[bot] avatar tehbrian avatar trigary avatar xmorose avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

randomteleport's Issues

Add more debug options

  • Add option to see if location search failed.
  • Add option to show more information regarding location

Basic API

Add a basic API such as events for when a safe location is found and when a player teleports to a safe location. Could also allow us to get the current queue of locations, an more advanced API would allow us to modify the current queue list and more but this is just basic.

Economy message

If the price to rtp is 0, it shouldn't send the economy payment message to the player

Make it so players only see worlds in the auto fill in list that they can TP to.

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

When players type /rtp a list of all worlds show up even if those worlds have not even been added.

Describe the solution you'd like
A clear and concise description of what you want to happen.

It would be nice if that could be limited to only the worlds they are able to go to.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Error 1.16 Command RTP

INFO FrostSanta issued server command: /rtp
11.07 10:25:19 [Server] ERROR [ACF] Exception in command: rtp
11.07 10:25:19 [Server] ERROR [ACF] java.lang.reflect.InvocationTargetException
11.07 10:25:19 [Server] ERROR [ACF] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11.07 10:25:19 [Server] ERROR [ACF] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
11.07 10:25:19 [Server] ERROR [ACF] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
11.07 10:25:19 [Server] ERROR [ACF] at java.lang.reflect.Method.invoke(Method.java:498)
11.07 10:25:19 [Server] ERROR [ACF] at me.darkeyedragon.randomtp.acf.RegisteredCommand.invoke(RegisteredCommand.java:154)
11.07 10:25:19 [Server] ERROR [ACF] at me.darkeyedragon.randomtp.acf.BaseCommand.executeCommand(BaseCommand.java:577)
11.07 10:25:19 [Server] ERROR [ACF] at me.darkeyedragon.randomtp.acf.BaseCommand.execute(BaseCommand.java:513)
11.07 10:25:19 [Server] ERROR [ACF] at me.darkeyedragon.randomtp.acf.RootCommand.execute(RootCommand.java:99)
11.07 10:25:19 [Server] ERROR [ACF] at me.darkeyedragon.randomtp.acf.BukkitRootCommand.execute(BukkitRootCommand.java:81)
11.07 10:25:19 [Server] ERROR [ACF] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159)
11.07 10:25:19 [Server] ERROR [ACF] at org.bukkit.craftbukkit.v1_16_R1.CraftServer.dispatchCommand(CraftServer.java:794)
11.07 10:25:19 [Server] ERROR [ACF] at net.minecraft.server.v1_16_R1.PlayerConnection.handleCommand(PlayerConnection.java:1908)
11.07 10:25:19 [Server] ERROR [ACF] at net.minecraft.server.v1_16_R1.PlayerConnection.a(PlayerConnection.java:1719)
11.07 10:25:19 [Server] ERROR [ACF] at net.minecraft.server.v1_16_R1.PacketPlayInChat.a(PacketPlayInChat.java:47)
11.07 10:25:19 [Server] ERROR [ACF] at net.minecraft.server.v1_16_R1.PacketPlayInChat.a(PacketPlayInChat.java:5)
11.07 10:25:19 [Server] ERROR [ACF] at net.minecraft.server.v1_16_R1.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:23)
11.07 10:25:19 [Server] ERROR [ACF] at net.minecraft.server.v1_16_R1.TickTask.run(SourceFile:18)
11.07 10:25:19 [Server] ERROR [ACF] at net.minecraft.server.v1_16_R1.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136)
11.07 10:25:19 [Server] ERROR [ACF] at net.minecraft.server.v1_16_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23)
11.07 10:25:19 [Server] ERROR [ACF] at net.minecraft.server.v1_16_R1.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109)
11.07 10:25:19 [Server] ERROR [ACF] at net.minecraft.server.v1_16_R1.MinecraftServer.aZ(MinecraftServer.java:1136)
11.07 10:25:19 [Server] ERROR [ACF] at net.minecraft.server.v1_16_R1.MinecraftServer.executeNext(MinecraftServer.java:1129)
11.07 10:25:19 [Server] ERROR [ACF] at net.minecraft.server.v1_16_R1.IAsyncTaskHandler.executeAll(IAsyncTaskHandler.java:95)
11.07 10:25:19 [Server] ERROR [ACF] at net.minecraft.server.v1_16_R1.MinecraftServer.a(MinecraftServer.java:1259)
11.07 10:25:19 [Server] ERROR [ACF] at net.minecraft.server.v1_16_R1.MinecraftServer.v(MinecraftServer.java:1000)
11.07 10:25:19 [Server] ERROR [ACF] at net.minecraft.server.v1_16_R1.MinecraftServer.lambda$a$0(MinecraftServer.java:177)
11.07 10:25:19 [Server] ERROR [ACF] at java.lang.Thread.run(Thread.java:748)
11.07 10:25:19 [Server] ERROR [ACF] Caused by: java.lang.NullPointerException
11.07 10:25:19 [Server] ERROR [ACF] at me.darkeyedragon.randomtp.teleport.Teleport.random(Teleport.java:105)
11.07 10:25:19 [Server] ERROR [ACF] at me.darkeyedragon.randomtp.command.TeleportCommand.onTeleport(TeleportCommand.java:121)
11.07 10:25:19 [Server] ERROR [ACF] ... 27 more

Teleporting over large distance causes server to crash

Describe the bug
When teleporting to a distant location there is a chance your server will throw exceptions and eventually crash

To Reproduce
Steps to reproduce the behavior:

  1. Use the worldborder as radius
  2. Set worldborder to big value like 3000000
  3. /rtp

Expected behavior
For player to be teleported without crashing the server

Screenshots
If applicable, add screenshots to help explain your problem.

Minecraft Version
1.18.x

Plugin version
Pretty sure this affects all versions

Additional context
Related to PaperMC/Paper#7006

Solution:
Don't set your radius too big. Anything below 50.000 should be fine.
or
you can set use-async-chunk-teleport to false (default) in the config in the teleport section from version 2.1.0.136
(https://ci.darkeyedragon.me/job/Random%20Teleport)
example:

teleport:
  ...
  #Minecraft 1.18 seems to have issues with large (chunk) locations causing it to crash.
  #Setting this to false will teleport on the main thread preventing this issue but will block the main thread
  #For more info check: https://github.com/DarkEyeDragon/RandomTeleport/issues/190
  use-async-chunk-teleport: false

java.lang.StackOverflowError

The bug
Minecraft console reports the above error just after user /rtp command.

To Reproduce
Steps to reproduce the behavior:

  1. Run the plubin on 1.16.3 latest papermc - openjdk version "11.0.9" 2020-10-20
  2. Player types /rtp
  3. Error - https://pastebin.com/iU8PwuKE

Expected behavior
No error

Screenshots
If applicable, add screenshots to help explain your problem.

Minecraft Version
Is above

Plugin version
RandomTeleport-1.6.0.jar

Depfu Error: No dependency files found

Hello,

We've tried to activate or update your repository on Depfu and couldn't find any supported dependency files. If we were to guess, we would say that this is not actually a project Depfu supports and has probably been activated by error.

Monorepos

Please note that Depfu currently only searches for your dependency files in the root folder. We do support monorepos and non-root files, but don't auto-detect them. If that's the case with this repo, please send us a quick email with the folder you want Depfu to work on and we'll set it up right away!

How to deactivate the project

  • Go to the Settings page of either your own account or the organization you've used
  • Go to "Installed Integrations"
  • Click the "Configure" button on the Depfu integration
  • Remove this repo (DarkEyeDragon/RandomTeleport) from the list of accessible repos.

Please note that using the "All Repositories" setting doesn't make a lot of sense with Depfu.

If you think that this is a mistake

Please let us know by sending an email to [email protected].


This is an automated issue by Depfu. You're getting it because someone configured Depfu to automatically update dependencies on this project.

Disabling show-queue-population breaks the search of new safe locations

Describe the bug
If you set show-queue-population option of config to false and use the 5 safe zones loaded in the queue, it won't search for more safe zones.

To Reproduce
Steps to reproduce the behavior:

  1. Set show-queue-population to false in config
  2. Start the server and join
  3. Spam the command /rtp 6 times to use all the safezones that the plugin load correctly
  4. Use the command "/rtpdebug show queue" to see the queue list empty

Expected behavior
Maybe an error of code with show-queue-population option that affects to a condition method.

Minecraft Version
1.19.2 client
Paper 1.19.2 177 server

Plugin version
3.1.0 196

support HuskTown plugin

Is your feature request related to a problem? Please describe.
i want this plugin support husktown

Describe the solution you'd like
husktown is a multi server town plugin

Describe alternatives you've considered
code an addon for this , but i didnt have time to do that

Menu system.

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Players have to first teleport to the world they want and then they can execute the rtp command.
The autofill in the rtp command not only shows all worlds rather than just the ones they can actually teleport to there is no practical way to give instructions like do your mining in this world and build you bases in that world.

Describe the solution you'd like
A clear and concise description of what you want to happen.

A menu option such that when players type rtp a menu comes up. The menu should be configurable by the admin to be able to pick the menu items and to put title and lore on menu items.
This would allow for menu items for different worlds that describe what the worlds are to be used for and any other information the player should know.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Some convoluted setup where players don't have permission to use rtp and another command like rt is used to open a menu with DeluxeMenus then the rtp command is executed as_server or as_op when player selects menu item.

Additional context
Add any other context or screenshots about the feature request here.

Doing addworld rewrites config and delete all comments and rewrites previously made changes

Describe the bug
A clear and concise description of what the bug is.
Using addworld command rewrites the entire config file. All the documentation comments are deleted and changes made to the file are reset to defaults
To Reproduce
Steps to reproduce the behavior:

  1. Look at config. Make a change to it
  2. Go in game and use the addworld command
  3. Look at config and see the changes you previously made are reset and all the documentation comments have been deleted.

Expected behavior
A clear and concise description of what you expected to happen.
I can see that since the changes made to the file were not put into memory with either a reload or restart so that may be a good explanation for that part of the problem.
However the original comments that documented the config file should not be erased.

Screenshots
If applicable, add screenshots to help explain your problem.

Minecraft Version
What minecraft version is the server running on 1.15.2

Plugin version
What version of the plugin are you running?
Can be found by using /version randomteleport
RandomTeleport version 2.0.0.72

Additional context
Add any other context about the problem here.

Queue is empty sometimes

10:56:53 [INFO] survival > [RandomTeleport] Safe location consumed for world (4/5)
10:57:02 [INFO] survival > [RandomTeleport] Safe location consumed for world (3/5)
10:57:15 [INFO] survival > [RandomTeleport] Safe location added for world (4/5)

Not sure why, but 2 safe locations are consumed, yet only 1 is filled back.

Eventually, queue is empty, and I have to reload the plugin manually to refill it.

config.yml

Random Teleport don't work with custom dimensions

Hello! I ran into the problem that this plugin does not see custom dimentions created via datapack. Recently, Bukkit started supporting world generation via datapacks. In our case, when I enter the name of the custom dimention (world) and set its radius in the config, I get an error in the console when the server starts and the plugin crashes. The error seems like:
error

List only worlds that players can rtp in the list of worlds shown in rtp command

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
When a player types rtp the autofill shows all worlds on the server. It would be better if it only showed the worlds that rtp has been enabled for.

Describe the solution you'd like
A clear and concise description of what you want to happen.
When a player types rtp a list of worlds that have been added to randomteleport config are shown and worlds that rtp cannot be used in are not listed
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

I mentioned this before and it was closed saying that the feature has been added. It has not been added.

Can't RTP in MultiVerse World unless I reload the plugin

Describe the bug

When trying to RTP in a world added by Multiverse you are being told that you can't do that in the world. Even though the world is not restricted.
Only reloading the plugin fixes that issue.

To Reproduce
Steps to reproduce the behavior:

  1. Add a world with MV
  2. Restart the server
  3. Go to the world and run /rtp

Expected behavior
All worlds to work regardless of how they are added

Minecraft Version
1.16.5

Plugin version
2.0.0.68

Plugin loads chunks until disk space is gone even if no players in game.

Describe the bug
This plugin is causing chunks to be loaded until disk space is 0.

To Reproduce
Steps to reproduce the behavior:

  1. run plugin
  2. do nothing don't even go into the game.
  3. look at the file size for the world folder
  4. Check the folder size ever few minutes and note that it increases in size rapidly. (very roughly about 0.01 GB every 20 seconds)
  5. If you are a glutton for punishment let it run until there is disk space left
    Expected behavior
    I would never expect a TP program to cause chunks to be load ininately loaded even when no players are in the game let alone anyone TPing anywhere.

Screenshots
If applicable, add screenshots to help explain your problem.

Minecraft Version
1.18.1

Plugin version
What version of the plugin are you running?
Can be found by using /version randomteleport
RandomTeleport version 2.1.0.160
Additional context
Add any other context about the problem here.
In the time it took me to type this a my test server went from 2.90 GB to 3.51 GB with no players entering the game since the server was started.

Multiple World Support

It would be nice to be able to set different teleport radius and offsets in different worlds.

Add position placeholders

Feature Suggestion
Add position placeholders that can be added to the teleport message

Example:
teleport: "&bA safe place has been found! Teleporting to %posX %posY %posZ"

=====================================================
Another cool feature would be the ability to send a title message on teleport
Example: https://prnt.sc/tdelru

rtp.teleport.world permission not working Exploit

On 1.19.2 Purpur
Players are able to bypass the world teleport restrict by using"/rtp world"
They can use "/rtp world" to teleport in the nether or end dimension, which should have been prohibit

Large queue size overloads threadpool

Describe the bug
Using a large queue size overloads the threadpool causing large delays on the initial location searches.

To Reproduce
Steps to reproduce the behavior:

  1. set queuesize to 100 or other large number
  2. wait for server to startup
  3. profit

Expected behavior
Locations should start generating the moment the server is loaded.

Screenshots
Expected
image
Actual
image

Minecraft Version
This server is running Paper version git-Paper-393 (MC: 1.16.4) (Implementing API version 1.16.4-R0.1-SNAPSHOT)

Plugin version
What version of the plugin are you running?
RandomTeleport version 2.1.0.1 (internal dev version)

Additional context
Add any other context about the problem here.

[Feature] Add a teleportation delay

What the tittle suggests. Series of events would then be:
initteleport -> wait (eg. 3 seconds) -> teleport.

If the player moves during the waiting period, the teleportation would get cancelled.

Expose extra api for other plugin to integrate

Is your feature request related to a problem? Please describe.

Currently, i was using the API based on your code, but it's not good idea, since later on any internal changes you would change the structure. But with a open api for this make sure structure won't change or only change a little in future is better for other developers who integrated this.

Describe the solution you'd like

An open api for get random location, teleport player to random location.

Extras

As of this need your help to check is it correct so myself tested work fine, also an alternative solution for other. Btw i can help to make a PR for this, but you done would be better since you're have more undestanding to your codes.

image

RandomTeleport 1.14.4

Hi, I am using 1.14.4 version and I am using this plugin to TP in worlds..
Basically, when I do /rtp it doesn't tp me..

Just it says in the console.. [15:49:16 INFO]: [RandomTeleport] Safe location consumed for survival (0/5).. and nothing happens..
This is my config..
Link: https://pastebin.com/G8dicXi6

Thanks, will wait for your answer.. keep safe! ^^

Queue generates too many locations

Queue generates too many locations in the rare case where the queue is empty and is force generating locations. When the force generation count exceeds the queue limit. A result of this is that excess locations will be will be generated and discarded. Causing more strain on the server than needed.

(realistically if you have this issue you should just increase the queue size)

image

Ability to set distance to randomly teleport in command arguments

Is your feature request related to a problem? Please describe.
Not related to a problem.

Describe the solution you'd like
I'd like to be able to specify, either as a player or as the server console, how far in blocks the random teleport will go from the start point through a command argument (giving the ability to change the distance every time).

Describe alternatives you've considered
I've looked for alternate plugins that allow this. Some allow it in the configuration of the plugin, but I haven't seen this as an option that is built into the command.

Give players something so that they don't die on rtp

Ik that there is this already
image
This

BUT what would be a better thing would be to give players resistance and absorption ok wild tp, Ik a plugin that did that and it worked marvelously. Give the absorption and resistance for 10-15 seconds every time the wild tp.

Just an idea I think it'll do much good :)

Add console support for admin commands

Is your feature request related to a problem? Please describe.
Unable to run admin commands through console.

[RandomTeleport] [ACF] java.lang.NullPointerException: Cannot invoke "org.bukkit.entity.Player.hasPermission(String)" because "this.player" is null
[RandomTeleport] [ACF]        at RandomTeleport-Spigot.jar//me.darkeyedragon.randomtp.world.PlayerSpigot.hasPermission(PlayerSpigot.java:85)
[RandomTeleport] [ACF]        at RandomTeleport-Spigot.jar//me.darkeyedragon.randomtp.common.command.RandomTeleportCommand.teleport(RandomTeleportCommand.java:177)
[RandomTeleport] [ACF]        at RandomTeleport-Spigot.jar//me.darkeyedragon.randomtp.common.command.RandomTeleportCommand.onTeleport(RandomTeleportCommand.java:155)
[RandomTeleport] [ACF]        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[RandomTeleport] [ACF]        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
[RandomTeleport] [ACF]        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[RandomTeleport] [ACF]        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[RandomTeleport] [ACF]        at RandomTeleport-Spigot.jar//co.aikar.commands.RegisteredCommand.invoke(RegisteredCommand.java:152)
[RandomTeleport] [ACF]        at RandomTeleport-Spigot.jar//co.aikar.commands.BaseCommand.executeCommand(BaseCommand.java:577)
[RandomTeleport] [ACF]        at RandomTeleport-Spigot.jar//co.aikar.commands.BaseCommand.execute(BaseCommand.java:513)
[RandomTeleport] [ACF]        at RandomTeleport-Spigot.jar//co.aikar.commands.RootCommand.execute(RootCommand.java:99)
[RandomTeleport] [ACF]        at RandomTeleport-Spigot.jar//co.aikar.commands.BukkitRootCommand.execute(BukkitRootCommand.java:81)
[RandomTeleport] [ACF]        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:155)
[RandomTeleport] [ACF]        at org.bukkit.craftbukkit.v1_19_R1.CraftServer.dispatchCommand(CraftServer.java:909)
[RandomTeleport] [ACF]        at org.bukkit.craftbukkit.v1_19_R1.CraftServer.dispatchServerCommand(CraftServer.java:872)
[RandomTeleport] [ACF]        at net.minecraft.server.dedicated.DedicatedServer.bg(DedicatedServer.java:473)
[RandomTeleport] [ACF]        at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:447)
[RandomTeleport] [ACF]        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1414)
[RandomTeleport] [ACF]        at net.minecraft.server.MinecraftServer.v(MinecraftServer.java:1187)
[RandomTeleport] [ACF]        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:302)
[RandomTeleport] [ACF]        at java.base/java.lang.Thread.run(Thread.java:833)

Describe the solution you'd like
It would be great if you could allow admin commands (other than /rtp reload) to run from the console. I'm particularly interested in running /rtp resetcooldown from the console.

Also, the wiki has a typo in the reset cooldown command "/rtp resetcoodown".

Server uses a lot of ram.

Describe the bug
Over time the server will use up all of its ram. Tested this with just this plugin loaded and in a span of 14 hours it eat up all the sever ram.

To Reproduce
Steps to reproduce the behavior:

  1. Add plugin wait and few hours
  2. As players join and leave server will eat more and more ram

Screenshots
JmqQW464mAcb0QBOeNYW

Minecraft Version
Paper version git-Paper-169 (MC: 1.18.1)

Plugin version
What version of the plugin are you running?
RandomTeleport version 2.1.0.141

Error log when addons folder isn't present!

Describe the bug
Bug is due to plugin not creating addons folder on startup

To Reproduce
Steps to reproduce the behavior:

  1. Install RandomTeleport version 2.1.0.1 with new config
  2. Start Server!

Expected behavior
Create an addons folder automatically if isn't present

Screenshots
https://hastebin.com/lahizituvu.properties

Minecraft Version
Paper version git-Paper-310 (MC: 1.16.4) (Implementing API version 1.16.4-R0.1-SNAPSHOT)

Plugin version
RandomTeleport version 2.1.0.1`

Additional context
This is my first issue report so that's all!

Dogs not teleporting with players (some are)

Describe the bug
On our server, a few players are mentioning that their pets (primarily dogs) are not all following them when they do /rtp and have lost a few dogs in the process. Regardless of the dogs being tagged or not.

I'm not sure if this is from vanilla or the plugin.

To Reproduce
Steps to reproduce the behavior:

  1. Claim a few pets (more than one, recommended to do 3 or 4 and use dogs)
  2. use rtp, sometimes the dogs will come with, and sometimes you will lose one or two (in some cases people have lost 4)
  3. return to the previous place prior to rtp to see if dogs are there.

Expected behavior
My understanding of the issue is that the dogs are stuck in the previous areas prior to teleporting and some are just lost to the void, and some will teleport with the player.

Reproducing this should result in you losing up to 90% of dogs during teleportation.

Screenshots
If applicable, add screenshots to help explain your problem.

Minecraft Version
1.16.3

Plugin version
1.6.0

Additional context
Only found this out since a player is focused on having a dog army, but recreating this with 3 or 4 dogs showed dogs missing.

New plugin supported ?

My request is simple : can u support, please, the plugin SaberFaction that is vry popular ? :)
Thanks a lot !!

Worldborder check before teleport

If use-worldborder is enabled, the plugin should have an additional safety check that the player isn't going to teleport outside the border, this is to protect the player from recently changed worldborder size which hast had safe spots re-calculated, I installed the plugin and it immediately teleported and killed me outside the border and continued to for some time until I'm guessing the safe spots finished calculating or something.

Improve backward compatibility for older versions

Is your feature request related to a problem? Please describe.
Due to a change in how chunk snapshots are handled it's currently not possible to use the last versions on older versions (1.16.5 for example)

Describe the solution you'd like
Find a workaround that allows you to still support older versions

Describe alternatives you've considered
Updating is always the best solution.

Support for 1.12.2

Hello!

Would is please be possible to make the plugin compatible for 1.12.2?
The plugin looks amazing and it would be nice to have it in 1.12.2.

The issue is just to rename the blocks.

Thank you in advance! ๐Ÿ‘
image

Problem with color

Hi,

Just a little bug with color :
'&7[&5StelyTp&7] &aBonne aventure ร  toi.'

Send a white message in the chat...

Safe Spots

Lava and Water should not be considered as safe spots,
i guess?

Some players died cuz they spawned IN Water or IN Lava.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.