Realizedd / Duels

A duel plugin for minecraft.
https://www.spigotmc.org/resources/duels.20171/
GNU General Public License v3.0
108 stars 100 forks source link

[Request] CMI /back #10

Open Baktus79 opened 6 years ago

Baktus79 commented 6 years ago

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.

Realizedd commented 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.

Drc-DEV commented 5 years ago

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.