Zedd7 / ZHorse

Bukkit plugin providing an enhanced management of horses in Minecraft
https://www.spigotmc.org/resources/zhorse.3384/
Other
11 stars 12 forks source link

Horse duplication on teleportation #130

Open RanokES opened 5 years ago

RanokES commented 5 years ago

Bug report

What are you trying to do ?

Duplicate horses with /zh here and all the items they have. It works also for mules.

What is the expected behavior ?

It's expected to just teleport one horse to you, not to duplicate it.

What is the actual behavior ?

After spamming for some times /zh here, the horse/mule/whatever duplicates.

How to reproduce the bug ?

  1. Have a tamed Mule.
  2. Spam in chat /zh here
  3. After spamming for 4/5 times, the horse (Mule) is duplicated and with him, all the objects.

Console output

There is no console output.

Environment specifications

Zedd7 commented 5 years ago

Until it gets fixed, you can avoid this by enabling Settings.use-old-teleportation-method in the config. Both methods have their own issues depending on the server: the vanilla (Bukkit) one will actually teleport the horse but may not work well in plugin-protected areas ; the new one (ZHorse) does not move the horse but deletes and re-create it from scratch at the destination location.

The custom teleportation method has several layers of checks to ensure that the old horse was indeed deleted so it may take quite some time for me to be able to reproduce this issue and figure out what is not working here.

Zedd7 commented 5 years ago

@RanokES Could you make sure that you were running the latest PaperMC build for 1.14.4 at the time those bugs happened ? I got reports from previous builds saying that there was an issue with chunks (un)loading which can impact the removal of duplicate horses.

Also, could you try to duplicate a horse again (juste enable back the new teleportation method and use /zh reload) and do the following ? :

Zedd7 commented 5 years ago

Also, I forgot to mention, you can set a cooldown on the /zh here command so that players won't be able to spam it.

RanokES commented 5 years ago

@Zedd7 We are testing this in the 233 build of PaperMC, so yeah, it duplicates in the latest version.

For your other questions:

mhtvsSFrpHdE commented 4 years ago

Well can't we just add a 20 seconds command cooldown to make sure this "feature" cannot be utilized at all?

Zedd7 commented 4 years ago

Well can't we just add a 20 seconds command cooldown to make sure this "feature" cannot be utilized at all?

Yes you can

mhtvsSFrpHdE commented 4 years ago

@Zedd7 I'm sorry... I just print some of my first impression on this topic...