Open Baktus79 opened 6 years ago
Since I don’t have CMI, I’ll have trouble implementing the feature myself. If you could join my discord server (http://discord.realized.me), I can send you a version with an attempted implementation so you could test it out and let me know if it works.
You can already blacklist the duel world from being used by the CMI /Back command in cmi configuration.
@Realizedd CMI has an open-source api, https://github.com/Zrips/CMI-API
Look for CMIPlayerTeleportEvent And check if ((e.getType() == TeleportType.Back) || (e.getType() == TeleportType.DBack)) You can get the world name with String worldName= e.getSafe().getSafeLoc().getWorld().getName(); And it is cancellable.
Is it possible to add CMI /back as well? I see the plugin supports Essentials /back, and would be nice if it also supported CMI :D
Now players can teleport back to the arena after they die.