Initial commit

This commit is contained in:
Scifi9902
2026-10-12 13:57:05 -03:00
commit 4bde3b176a
2576 changed files with 212659 additions and 0 deletions
@@ -0,0 +1,25 @@
package net.crankedpvp.toggles.commands;
import me.mattstudios.mf.annotations.Command;
import me.mattstudios.mf.annotations.Default;
import me.mattstudios.mf.base.CommandBase;
import net.crankedpvp.crankedcore.CrankedCore;
import net.crankedpvp.crankedcore.data.CrankedUser;
import net.crankedpvp.crankedcore.language.Language;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
@Command("togglekilltitle")
public class ToggleKillTitleCommand extends CommandBase {
@Default
public void toggle(CommandSender sender) {
CrankedUser user = CrankedCore.getInstance().getCrankedUserManager().getCrankedUser(((Player)sender).getUniqueId());
if (user.isKillTitleEnabled()) {
user.setKillTitleEnabled(false);
Language.DISABLED_KILL_TITLE.send(sender);
} else {
user.setKillTitleEnabled(true);
Language.ENABLED_KILL_TITLE.send(sender);
}
}
}