EchoPet

EchoPet

882k Downloads

Another Pet Dupe...

UPSOKen opened this issue ยท 12 comments

commented

I hate to bring up another issue, but I have once again found one :(

I run a quake server...just so you know before reading.

I have 2 worlds...lobbyworld(Spawn and Join Signs) and world(Arenas). I have my friend come online(We will call him john), and he has a pet baby cow. John and I join a game...once it starts he disconnects(Before anyone can kill him), which kicks him out of the quake game, but a baby cow is sent to spawn...and it just sits there. Which would mean it doesn't detect an owner(Because he disconnected). Once he rejoins his pet is back, but the duped cow is still there.

commented

So I'm assuming that the quake game sends thr player to spawn?

commented

Sorta...You set a lobby...

I set it as the exact same point as spawn.

commented

Is there anyway to fix it?

commented

Yes, DSH105 should be able to fix this bug. If he doesnt fix it soon, I'll submit a PR when i have some spare time

commented

I figured out the problem! Its because PlayerTeleportEvent and PlayerQuitEvent are being triggered at the same time. On PlayerTeleport, Echopet is respawning the pets 1 second after they teleport, even though they're logging out at the same time.

Any plugin that teleports a player when they quit will cause a Pet dupe :O

This MIGHT also be the reason that pets are being duped from server->server teleportation. BungeeCord might be throwing a playerTeleportEvent and a playerQuitEvent whenever it redirects a player.

commented

Yeah, I've got a solution. Won't be able to do anything about it until late tomorrow though.

commented

See above. that's about as much as I can do at the moment. If it resolves this, great! :D

commented

So, Is this gonna be fixed in next update?

commented

Well did it fix the issue? I can't test this as I don't have the server environment to do so.

commented

I don't know really. I can't really test it. Although, I had some guys come on and just play yesterday and we had no dupes, but there is no way for me to test it in a sort of controlled environment, because the dupe was rather sporadic.

commented

Just tested it out, and it seems to be fixed! :)

commented

@bobacadodl Great! Do you know if it fixed the BungeeCord issue?