ChangeSkinX

ChangeSkinX

446k Downloads

world tp

DamianoMazzara opened this issue ยท 1 comments

commented

I'm using your plugin on my sponge server, reading on sponge forum i saw that you used an automatic /tp to apply skin changes, i don't find this teleport on code realease, i want to remove it because of possible abuse of it during the gameplay. Can you help me?

commented

You could also just deactivate instant skin changes, but here you go:

Sponge.getServer().getWorlds()
.stream()
.filter(world -> !world.equals(receiverWorld))
.findFirst()
.ifPresent(world -> {
receiver.setLocation(world.getSpawnLocation());
receiver.setLocationAndRotation(oldLocation, rotation);