From 0efbf77cf7037f76ddf71df3baeb7f24a1759efc Mon Sep 17 00:00:00 2001 From: Robinson Gallego Date: Sat, 28 Dec 2019 21:16:21 -0500 Subject: [PATCH] Revert "ok kae" This reverts commit 33cc3043 --- TotalFreedomMod.iml | 12 ----- .../command/Command_nickrainbow.java | 52 ------------------- 2 files changed, 64 deletions(-) delete mode 100644 src/main/java/me/totalfreedom/totalfreedommod/command/Command_nickrainbow.java diff --git a/TotalFreedomMod.iml b/TotalFreedomMod.iml index b882e280..5ef5de5b 100644 --- a/TotalFreedomMod.iml +++ b/TotalFreedomMod.iml @@ -1,14 +1,5 @@ - - - - - SPIGOT - - - - @@ -50,9 +41,6 @@ - - - diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_nickrainbow.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_nickrainbow.java deleted file mode 100644 index 91f4b6c9..00000000 --- a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_nickrainbow.java +++ /dev/null @@ -1,52 +0,0 @@ -package me.totalfreedom.totalfreedommod.command; - -import me.totalfreedom.totalfreedommod.rank.Rank; -import me.totalfreedom.totalfreedommod.util.FUtil; -import org.apache.commons.lang.StringUtils; -import org.bukkit.ChatColor; -import org.bukkit.command.Command; -import org.bukkit.command.CommandSender; -import org.bukkit.entity.Player; - -@CommandPermissions(level = Rank.OP, source = SourceType.ONLY_IN_GAME) -@CommandParameters(description = "Gives you a rainbow nickname", usage = "/ ") -public class Command_nickrainbow extends FreedomCommand -{ - - @Override - public boolean run(CommandSender sender, Player playerSender, Command cmd, String commandLabel, String[] args, boolean senderIsConsole) - { - if (args.length < 1) - { - return false; - } - - final String nick = ChatColor.stripColor(FUtil.colorize(StringUtils.join(args, " "))); - - if (!plugin.al.isAdmin(sender)) - { - final String rawNick = ChatColor.stripColor(nick).toLowerCase(); - - if (rawNick.length() > 20) - { - msg("That nick is too long (Max is 20 characters)."); - return true; - } - - for (String word : Command_tag.FORBIDDEN_WORDS) - { - if (rawNick.contains(word)) - { - msg("That nick contains a forbidden word."); - return true; - } - } - } - - plugin.pl.getPlayer(playerSender).setTag(FUtil.rainbowify(nick)); - - msg("Set nick to " + nick); - - return true; - } -} \ No newline at end of file