Duels icon indicating copy to clipboard operation
Duels copied to clipboard

[Request] CMI /back

Open Baktus79 opened this issue 7 years ago • 2 comments

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.

Baktus79 avatar Sep 23 '18 11:09 Baktus79

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.

Realizedd avatar Sep 23 '18 15:09 Realizedd

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.

Drc-DEV avatar Jun 14 '19 13:06 Drc-DEV