Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.funnyman850.FunnyFoots;
- import java.util.ArrayList;
- import java.util.logging.Logger;
- import org.bukkit.Bukkit;
- import org.bukkit.ChatColor;
- import org.bukkit.command.Command;
- import org.bukkit.command.CommandSender;
- import org.bukkit.entity.Player;
- import org.bukkit.event.Listener;
- import org.bukkit.plugin.PluginManager;
- import org.bukkit.plugin.java.JavaPlugin;
- public class FunnyFoots extends JavaPlugin
- {
- public final Listener playerListener = new FunnyFootsListener(this);
- public static ArrayList<Player> FunnyFire;
- public static FunnyFoots instance;
- public ArrayList<Player> FunnyDrug;
- public ArrayList<Player> FunnyPotion;
- public ArrayList<Player> FunnyEnd;
- public ArrayList<Player> FunnyLove;
- public ArrayList<Player> FunnyFish;
- public ArrayList<Player> FunnyLava;
- public ArrayList<Player> FunnyHate;
- public ArrayList<Player> FunnySeason;
- public ArrayList<Player> FunnyExplosion;
- public ArrayList<Player> FunnyFireworks;
- public ArrayList<Player> FunnyRedstone;
- public ArrayList<Player> FunnySlime;
- public ArrayList<Player> FunnyFootstep;
- public boolean EnableFire = true;
- public boolean EnableEnd = true;
- public boolean EnablePotion = true;
- public boolean EnableLove = true;
- public boolean EnableDrug = true;
- public boolean EnableFish = true;
- public boolean EnableHate = true;
- public boolean EnableLava = true;
- public boolean EnableSeason = true;
- public boolean EnableExplosion = true;
- public boolean EnableFireworks = true;
- public boolean EnableRedstone = true;
- public boolean EnableSlime = true;
- public boolean EnableFootstep = true;
- Logger log;
- public void onEnable()
- {
- this.log = getLogger();
- FunnyFoots.instance = this;
- this.saveDefaultConfig();
- FunnyFoots.FunnyFire = new ArrayList<Player>();
- this.FunnyDrug = new ArrayList<Player>();
- FunnyFoots.FunnyFire = new ArrayList<Player>();
- this.FunnyPotion = new ArrayList<Player>();
- this.FunnyEnd = new ArrayList<Player>();
- this.FunnyLove = new ArrayList<Player>();
- this.FunnyFish = new ArrayList<Player>();
- this.FunnyLava = new ArrayList<Player>();
- this.FunnyHate = new ArrayList<Player>();
- this.FunnySeason = new ArrayList<Player>();
- this.FunnyExplosion = new ArrayList<Player>();
- this.FunnyFireworks = new ArrayList<Player>();
- this.FunnyRedstone = new ArrayList<Player>();
- this.FunnySlime = new ArrayList<Player>();
- this.FunnyFootstep = new ArrayList<Player>();
- this.EnableFire = this.getConfig().getBoolean("EnableFire");
- this.EnableEnd = this.getConfig().getBoolean("EnableEnd");
- this.EnablePotion = this.getConfig().getBoolean("EnablePotion");
- this.EnableLove = this.getConfig().getBoolean("EnableLove");
- this.EnableDrug = this.getConfig().getBoolean("EnableDrug");
- this.EnableFish = this.getConfig().getBoolean("EnableFish");
- this.EnableHate = this.getConfig().getBoolean("EnableHate");
- this.EnableLava = this.getConfig().getBoolean("EnableLava");
- this.EnableSeason = this.getConfig().getBoolean("EnableSeason");
- this.EnableExplosion = this.getConfig().getBoolean("EnableExplosion");
- this.EnableFireworks = this.getConfig().getBoolean("EnableFireworks");
- this.EnableRedstone = this.getConfig().getBoolean("EnableRedstone");
- this.EnableSlime = this.getConfig().getBoolean("EnableSlime");
- this.EnableFootstep = this.getConfig().getBoolean("EnableFootstep");
- this.log.info("FunnyFoots has Been Enabled!");
- PluginManager pm = getServer().getPluginManager();
- pm.registerEvents(this.playerListener, this);
- }
- public void onDisable() {
- this.log.info("FunnyFoots has been disabled!");
- }
- public boolean onCommand(CommandSender sender, Command cmd, String commandlabel, String[] args) {
- ChatColor red = ChatColor.RED;
- ChatColor aqua = ChatColor.AQUA;
- ChatColor yellow = ChatColor.YELLOW;
- ChatColor green = ChatColor.GREEN;
- if (args.length < 1) {
- if ((sender instanceof Player)) {
- Player player = (Player)sender;
- if (cmd.getName().equalsIgnoreCase("Funnyfire")) {
- if (player.hasPermission("FunnyFoot.FunnyFire")) {
- if (FunnyFoots.FunnyFire.contains(player)) {
- FunnyFoots.FunnyFire.remove(player);
- player.sendMessage(yellow + getConfig().getString("DisableFunnyFire"));
- return true;
- }
- FunnyFoots.FunnyFire.add(player);
- player.sendMessage(yellow + getConfig().getString("EnableFunnyFire"));
- return true;
- }
- player.sendMessage(red + "No permission.");
- }
- else if (cmd.getName().equalsIgnoreCase("FunnyDrug")) {
- if (player.hasPermission("FunnyFoot.FunnyDrug")) {
- if (this.FunnyDrug.contains(player)) {
- this.FunnyDrug.remove(player);
- player.sendMessage(yellow + getConfig().getString("DisableFunnyDrug"));
- return true;
- }
- this.FunnyDrug.add(player);
- player.sendMessage(yellow + getConfig().getString("EnableFunnyDrug"));
- return true;
- }
- player.sendMessage(red + "No permission");
- }
- else if (cmd.getName().equalsIgnoreCase("FunnyFish")) {
- if (player.hasPermission("FunnyFoot.FunnyFish")) {
- if (this.FunnyFish.contains(player)) {
- this.FunnyFish.remove(player);
- player.sendMessage(yellow + getConfig().getString("DisableFunnyFish"));
- return true;
- }
- this.FunnyFish.add(player);
- player.sendMessage(yellow + getConfig().getString("EnableFunnyFish"));
- return true;
- }
- player.sendMessage(red + "No permission");
- }
- else if (cmd.getName().equalsIgnoreCase("FunnyLava")) {
- if (player.hasPermission("FunnyFoot.FunnyLava")) {
- if (this.FunnyLava.contains(player)) {
- this.FunnyLava.remove(player);
- player.sendMessage(yellow + getConfig().getString("DisableFunnyLava"));
- return true;
- }
- this.FunnyLava.add(player);
- player.sendMessage(yellow + getConfig().getString("EnableFunnyLava"));
- return true;
- }
- player.sendMessage(red + "No permission");
- }
- else if (cmd.getName().equalsIgnoreCase("FunnyLove")) {
- if (player.hasPermission("FunnyFoot.FunnyLove")) {
- if (this.FunnyLove.contains(player)) {
- this.FunnyLove.remove(player);
- player.sendMessage(yellow + getConfig().getString("DisableFunnyLove"));
- return true;
- }
- this.FunnyLove.add(player);
- player.sendMessage(yellow + getConfig().getString("EnableFunnyLove"));
- return true;
- }
- player.sendMessage(red + "No permission");
- }
- else if (cmd.getName().equalsIgnoreCase("FunnyHate")) {
- if (player.hasPermission("FunnyFoot.FunnyHate")) {
- if (this.FunnyHate.contains(player)) {
- this.FunnyHate.remove(player);
- player.sendMessage(yellow + getConfig().getString("DisableFunnyHate"));
- return true;
- }
- this.FunnyHate.add(player);
- player.sendMessage(yellow + getConfig().getString("EnableFunnyHate"));
- return true;
- }
- player.sendMessage(red + "No permission");
- }
- else if (cmd.getName().equalsIgnoreCase("FunnySeason")) {
- if (player.hasPermission("FunnyFoot.FunnySeason")) {
- if (this.FunnySeason.contains(player)) {
- this.FunnySeason.remove(player);
- player.sendMessage(yellow + getConfig().getString("DisableFunnySeason"));
- return true;
- }
- this.FunnySeason.add(player);
- player.sendMessage(yellow + getConfig().getString("EnableFunnySeason"));
- return true;
- }
- player.sendMessage(red + "No permission");
- }
- else if (cmd.getName().equalsIgnoreCase("FunnyPotion")) {
- if (player.hasPermission("FunnyFoot.FunnyPotion")) {
- if (this.FunnyPotion.contains(player)) {
- this.FunnyPotion.remove(player);
- player.sendMessage(yellow + getConfig().getString("DisableFunnyPotion"));
- return true;
- }
- this.FunnyPotion.add(player);
- player.sendMessage(yellow + getConfig().getString("EnableFunnyPotion"));
- return true;
- }
- player.sendMessage(red + "No permission");
- }
- else if (cmd.getName().equalsIgnoreCase("FunnyEnd")) {
- if (player.hasPermission("FunnyFoot.FunnyEnd")) {
- if (this.FunnyEnd.contains(player)) {
- this.FunnyEnd.remove(player);
- player.sendMessage(yellow + getConfig().getString("DisableFunnyEnd"));
- return true;
- }
- this.FunnyEnd.add(player);
- player.sendMessage(yellow + getConfig().getString("EnableFunnyEnd"));
- return true;
- }
- player.sendMessage(red + "No permission");
- }
- else if (cmd.getName().equalsIgnoreCase("FunnyExplosion")) {
- if (player.hasPermission("FunnyFoot.FunnyExplosion")) {
- if (this.FunnyExplosion.contains(player)) {
- this.FunnyExplosion.remove(player);
- player.sendMessage(yellow + getConfig().getString("DisableFunnyExplosion"));
- return true;
- }
- this.FunnyExplosion.add(player);
- player.sendMessage(yellow + getConfig().getString("EnableFunnyExplosion"));
- return true;
- }
- player.sendMessage(red + "No permission");
- }
- else if (cmd.getName().equalsIgnoreCase("FunnyFireworks")) {
- if (player.hasPermission("FunnyFoot.FunnyFireworks")) {
- if (this.FunnyFireworks.contains(player)) {
- this.FunnyFireworks.remove(player);
- player.sendMessage(yellow + getConfig().getString("DisableFunnyFireworks"));
- return true;
- }
- this.FunnyFireworks.add(player);
- player.sendMessage(yellow + getConfig().getString("EnableFunnyFireworks"));
- return true;
- }
- player.sendMessage(red + "No permission");
- }
- else if (cmd.getName().equalsIgnoreCase("FunnyRedstone")) {
- if (player.hasPermission("FunnyFoot.FunnyRedstone")) {
- if (this.FunnyRedstone.contains(player)) {
- this.FunnyRedstone.remove(player);
- player.sendMessage(yellow + getConfig().getString("DisableFunnyRedstone"));
- return true;
- }
- this.FunnyRedstone.add(player);
- player.sendMessage(yellow + getConfig().getString("EnableFunnyRedstone"));
- return true;
- }
- player.sendMessage(red + "No permission");
- }
- else if (cmd.getName().equalsIgnoreCase("FunnySlime")) {
- if (player.hasPermission("FunnyFoot.FunnySlime")) {
- if (this.FunnySlime.contains(player)) {
- this.FunnySlime.remove(player);
- player.sendMessage(yellow + getConfig().getString("DisableFunnySlime"));
- return true;
- }
- this.FunnySlime.add(player);
- player.sendMessage(yellow + getConfig().getString("EnableFunnySlime"));
- return true;
- }
- player.sendMessage(red + "No permission");
- }
- else if (cmd.getName().equalsIgnoreCase("FunnyFootstep")) {
- if (player.hasPermission("FunnyFoot.FunnyFootstep")) {
- if (this.FunnyFootstep.contains(player)) {
- this.FunnyFootstep.remove(player);
- player.sendMessage(yellow + getConfig().getString("DisableFunnyFootstep"));
- return true;
- }
- this.FunnyFootstep.add(player);
- player.sendMessage(yellow + getConfig().getString("EnableFunnyFootstep"));
- return true;
- }
- player.sendMessage(red + "No permission");
- }
- else if (cmd.getName().equalsIgnoreCase("FunnyCheck")) {
- if ((player.hasPermission("FunnyFoot.FunnyFire")) || (player.hasPermission("FunnyFoot.FunnyEnd")) || (player.hasPermission("FunnyFoot.FunnyPotion")) || (player.hasPermission("FunnyFoot.FunnyLove")) || (player.hasPermission("FunnyFoot.FunnyFish")) || (player.hasPermission("FunnyFoot.FunnyLava")) || (player.hasPermission("FunnyFoot.FunnyHate")) || (player.hasPermission("FunnyFoot.FunnySeason")) || (player.hasPermission("FunnyFoot.FunnyEnd")) || (player.hasPermission("FunnyFoot.FunnyExplosion")) || (player.hasPermission("FunnyFoot.FunnyFirework")) ||(player.hasPermission("FunnyFoot.FunnyRedstone")) ||(player.hasPermission("FunnyFoot.FunnySlime")) || (player.hasPermission("FunnyFoot.FunnyFootstep"))) {
- player.sendMessage(yellow + "Available Feet FX:");
- if (FunnyFoots.FunnyFire.contains(player)) {
- player.sendMessage("- FunnyFire");
- }
- if (this.FunnyDrug.contains(player)) {
- player.sendMessage("- FunnyDrug");
- }
- if (this.FunnyPotion.contains(player)) {
- player.sendMessage("- FunnyPotion");
- }
- if (this.FunnyEnd.contains(player)) {
- player.sendMessage("- FunnyEnd");
- }
- if (this.FunnyLove.contains(player)) {
- player.sendMessage("- FunnyLove");
- }
- if (this.FunnyFish.contains(player)) {
- player.sendMessage("- FunnyFish");
- }
- if (this.FunnyLava.contains(player)) {
- player.sendMessage("- FunnyLava");
- }
- if (this.FunnyHate.contains(player)) {
- player.sendMessage("- FunnyHate");
- }
- if (this.FunnySeason.contains(player)) {
- player.sendMessage("- FunnySeason");
- }
- if (this.FunnyExplosion.contains(player)) {
- player.sendMessage("- FunnyExplosion");
- }
- if (this.FunnyFireworks.contains(player)) {
- player.sendMessage("- FunnyFireworks");
- }
- if (this.FunnyRedstone.contains(player)) {
- player.sendMessage("- FunnyRedstone");
- }
- if (this.FunnySlime.contains(player)) {
- player.sendMessage("- FunnySlime");
- }
- if (this.FunnyFootstep.contains(player)) {
- player.sendMessage("- FunnyFootstep");
- }
- if ((!FunnyFoots.FunnyFire.contains(player)) && (!this.FunnyDrug.contains(player)) && (!this.FunnyPotion.contains(player)) && (!this.FunnyEnd.contains(player)) && (!this.FunnyFish.contains(player)) && (!this.FunnyLava.contains(player)) && (!this.FunnyHate.contains(player)) && (!this.FunnySeason.contains(player)) && (!this.FunnyLove.contains(player)) && (!this.FunnyExplosion.contains(player)) && (!this.FunnyFireworks.contains(player)) && (!this.FunnyRedstone.contains(player)) && (!this.FunnySlime.contains(player)) && (!this.FunnyFootstep.contains(player))) {
- player.sendMessage("WEll You Either Dont Have Acess Or Dont Have Any Foots Turned on");
- }
- }
- else
- {
- player.sendMessage(red + "No Perms...#FAIL");
- }
- } else { if (cmd.getName().equalsIgnoreCase("funnyfoot")) {
- player.sendMessage( ChatColor.AQUA + "Funny" + ChatColor.YELLOW + "Foot" + yellow + " - By" + red + " funnyman850");
- player.sendMessage(aqua + "To Toggle Foots Off after turning them on is the same command for simplicity!");
- player.sendMessage(aqua + "Availiable commands:");
- player.sendMessage(green + "CrazyFeet modes:");
- player.sendMessage(red + "-" + green + " /funnyfire" + yellow + " - While Walking Have Fire Particles!");
- player.sendMessage(red + "-" + green + " /crazydrug" + yellow + " - while walking smoke =)!");
- player.sendMessage(red + "-" + green + " /funnypotion" + yellow + " - Walk on PotionMagicalNess!");
- player.sendMessage(red + "-" + green + " /funnyend" + yellow + " - While Walking Have EnderPearl Effects!");
- player.sendMessage(red + "-" + green + " /funnylava" + yellow + " - While Walking Have Lava Particle Effects Effects!");
- player.sendMessage(red + "-" + green + " /funnylove" + yellow + " -While Walking Have Heart Particle Effects!");
- player.sendMessage(red + "-" + green + " /funnyfish" + yellow + " - While Walking have bubble effects!");
- player.sendMessage(red + "-" + green + " /funnyhate" + yellow + " -While walking have storm cloud particle effects!");
- player.sendMessage(red + "-" + green + " /funnyseason" + yellow + "While Walking have Seasonally changing foot effects!");
- player.sendMessage(red + "-" + green + " /funnyexplosion" + yellow + "While walking have explosion effects!");
- player.sendMessage(red + "-" + green + " /funnyfireworks" + yellow + "While walking have firework spark effects!");
- player.sendMessage(red + "-" + green + " /funnyredstone" + yellow + "While walking have redstone dust effects!");
- player.sendMessage(red + "-" + green + " /funnyslime" + yellow + "While walking have slime particle effects!");
- player.sendMessage(red + "-" + green + " /funnyfootstep" + yellow + "While walking have footsteps follow you!");
- player.sendMessage(red + "funnyfoot help:");
- player.sendMessage(red + "-" + aqua + " /funnyfoot" + red + " - Display this menu.");
- player.sendMessage(red + "-" + green + " /funnycheck" + yellow + " - Find which Funny modes are active!");
- player.sendMessage(red + "-" + aqua + " /funnydisable" + red + " - Disable all of your FunnyFoots modes!");
- player.sendMessage(red + "-" + green + " /funnyfoot admin" + yellow + " - Displays FunnyFoot admin commands!");
- player.sendMessage(red + "All commands turned on and off.");
- return true;
- }if (cmd.getName().equalsIgnoreCase("funnydisable")) {
- if ((player.hasPermission("FunnyFoot.FunnyFire")) || (player.hasPermission("FunnyFoot.FunnyDrug")) || (player.hasPermission("FunnyFoot.FunnyPotion")) || (player.hasPermission("FunnyFoot.FunnyEnd")) || (player.hasPermission("FunnyFoot.FunnyFish")) || (player.hasPermission("FunnyFoot.FunnyLava")) || (player.hasPermission("FunnyFoot.FunnyHate")) || (player.hasPermission("FunnyFoot.FunnySeason")) || (player.hasPermission("FunnyFoot.FunnyLove")) || (player.hasPermission("FunnyFoot.Explosion")) || (player.hasPermission("FunnyFoot.Fireworks")) || (player.hasPermission("FunnyFoot.Redstone")) || (player.hasPermission("FunnyFoot.FunnySlime")) || (player.hasPermission("FunnyFoot.FunnyFootstep"))) {
- if (FunnyFoots.FunnyFire.contains(player)) {
- FunnyFoots.FunnyFire.remove(player);
- }
- if (this.FunnyDrug.contains(player)) {
- this.FunnyDrug.remove(player);
- }
- if (this.FunnyPotion.contains(player)) {
- this.FunnyPotion.remove(player);
- }
- if (this.FunnyEnd.contains(player)) {
- this.FunnyEnd.remove(player);
- }
- if (this.FunnyFish.contains(player)) {
- this.FunnyFish.remove(player);
- }
- if (this.FunnyLava.contains(player)) {
- this.FunnyLava.remove(player);
- }
- if (this.FunnyHate.contains(player)) {
- this.FunnyHate.remove(player);
- }
- if (this.FunnySeason.contains(player)) {
- this.FunnySeason.remove(player);
- }
- if (this.FunnyLove.contains(player)) {
- this.FunnyLove.remove(player);
- }
- if (this.FunnyExplosion.contains(player)) {
- this.FunnyExplosion.remove(player);
- }
- if (this.FunnyFireworks.contains(player)) {
- this.FunnyFireworks.remove(player);
- }
- if (this.FunnyRedstone.contains(player)) {
- this.FunnyRedstone.remove(player);
- }
- if (this.FunnySlime.contains(player)) {
- this.FunnySlime.remove(player);
- }
- if (this.FunnyFootstep.contains(player)) {
- this.FunnyFootstep.remove(player);
- }
- player.sendMessage(green + "All of your FunnyFoot modes have Turned Off!");
- } else {
- player.sendMessage(yellow + "HAHA...No Perms...");
- }
- return true;
- }
- return true; }
- }
- else {
- sender.sendMessage(red + "You must be ingame to toggle effects for yourself. Use /command <target> to toggle for others.");
- }
- } else if (args.length == 1) {
- if (cmd.getName().equalsIgnoreCase("funnyfire")) {
- if (sender.hasPermission("FunnyFoot.fireother")) {
- if (Bukkit.getServer().getPlayer(args[0]) != null) {
- Player targ = Bukkit.getServer().getPlayer(args[0]);
- if (FunnyFoots.FunnyFire.contains(targ)) {
- FunnyFoots.FunnyFire.remove(targ);
- targ.sendMessage(red + sender.getName() + " has disabled your FunnyFire!");
- sender.sendMessage(red + targ.getDisplayName() + "'s FunnyFire has been disabled!");
- } else {
- FunnyFoots.FunnyFire.add(targ);
- targ.sendMessage(yellow + sender.getName() + " has given you FunnyFire!");
- sender.sendMessage(yellow + targ.getDisplayName() + " has been given FunnyFire!");
- }
- } else {
- sender.sendMessage(red + "The player " + yellow + args[0] + red + " is either offline or does not exist!");
- }
- }
- else sender.sendMessage(red + "You do not have permission to Foot Others!");
- }
- else if (cmd.getName().equalsIgnoreCase("funnydrug")) {
- if (sender.hasPermission("FunnyFoot.drugother")) {
- if (Bukkit.getServer().getPlayer(args[0]) != null) {
- Player targ = Bukkit.getServer().getPlayer(args[0]);
- if (this.FunnyDrug.contains(targ)) {
- this.FunnyDrug.remove(targ);
- targ.sendMessage(yellow + sender.getName() + " has disabled your FunnyDrug!");
- sender.sendMessage(yellow + targ.getDisplayName() + "'s FunnyDrug has been disabled!");
- } else {
- this.FunnyDrug.add(targ);
- targ.sendMessage(yellow + sender.getName() + " has given you FunnyDrug!");
- sender.sendMessage(yellow + targ.getDisplayName() + " has been given FunnyDrugs!");
- }
- } else {
- sender.sendMessage(red + "The player " + yellow + args[0] + red + " is either offline or does not exist!");
- }
- }
- else sender.sendMessage(red + "You do not have permission to drug other esspecially with funny....");
- }
- else if (cmd.getName().equalsIgnoreCase("funnyend")) {
- if (sender.hasPermission("FunnyFoot.endother")) {
- if (Bukkit.getServer().getPlayer(args[0]) != null) {
- Player targ = Bukkit.getServer().getPlayer(args[0]);
- if (this.FunnyEnd.contains(targ)) {
- this.FunnyEnd.remove(targ);
- targ.sendMessage(yellow + sender.getName() + " has disabled your FunnyEnd!");
- sender.sendMessage(yellow + targ.getDisplayName() + "'s FunnyEnd has been disabled!");
- } else {
- this.FunnyEnd.add(targ);
- targ.sendMessage(yellow + sender.getName() + " has given you FunnyEnd!");
- sender.sendMessage(yellow + targ.getDisplayName() + " has been given FunnyEnd!");
- }
- } else {
- sender.sendMessage(red + "The player " + yellow + args[0] + red + " is either offline or does not exist!");
- }
- }
- else sender.sendMessage(red + "You do not have permission to End Others...well with FunnyFoots....");
- }
- else if (args.length == 1) {
- if (cmd.getName().equalsIgnoreCase("FunnyLove")) {
- if (sender.hasPermission("FunnyFoot.loveother")) {
- if (Bukkit.getServer().getPlayer(args[0]) != null) {
- Player targ = Bukkit.getServer().getPlayer(args[0]);
- if (this.FunnyLove.contains(targ)) {
- this.FunnyLove.remove(targ);
- targ.sendMessage(red + sender.getName() + " has disabled your FunnyLove!");
- sender.sendMessage(red + targ.getDisplayName() + "'s FunnyLove has been disabled!");
- } else {
- FunnyFoots.FunnyFire.add(targ);
- targ.sendMessage(yellow + sender.getName() + " has given you FunnyLove!");
- sender.sendMessage(yellow + targ.getDisplayName() + " has been given FunnyLove!");
- }
- } else {
- sender.sendMessage(red + "The player " + yellow + args[0] + red + " is either offline or does not exist!");
- }
- }
- else sender.sendMessage(red + "You do not have permission to Foot Others!");
- }
- else if (cmd.getName().equalsIgnoreCase("FunnyPotion")) {
- if (sender.hasPermission("FunnyFoot.potionother")) {
- if (Bukkit.getServer().getPlayer(args[0]) != null) {
- Player targ = Bukkit.getServer().getPlayer(args[0]);
- if (this.FunnyPotion.contains(targ)) {
- this.FunnyPotion.remove(targ);
- targ.sendMessage(yellow + sender.getName() + " has disabled your Rad FunnyPotions!");
- sender.sendMessage(yellow + targ.getDisplayName() + "'s FunnyPotion has been disabled!");
- } else {
- this.FunnyPotion.add(targ);
- targ.sendMessage(yellow + sender.getName() + " has given you FunnyPotion!");
- sender.sendMessage(yellow + targ.getDisplayName() + " has been given FunnyPotion!");
- }
- } else {
- sender.sendMessage(red + "The player " + yellow + args[0] + red + " is either offline or does not exist!");
- }
- }
- else sender.sendMessage(red + "You do not have permission to FunnyPotion Odda Peoples....");
- }
- else if (cmd.getName().equalsIgnoreCase("FunnyFish")) {
- if (sender.hasPermission("FunnyFoot.fishother")) {
- if (Bukkit.getServer().getPlayer(args[0]) != null) {
- Player targ = Bukkit.getServer().getPlayer(args[0]);
- if (this.FunnyFish.contains(targ)) {
- this.FunnyFish.remove(targ);
- targ.sendMessage(yellow + sender.getName() + " has disabled your Rad FunnyFish!");
- sender.sendMessage(yellow + targ.getDisplayName() + "'s FunnyFish has been disabled!");
- } else {
- this.FunnyFish.add(targ);
- targ.sendMessage(yellow + sender.getName() + " has given you FunnyFish!");
- sender.sendMessage(yellow + targ.getDisplayName() + " has been given FunnyFish");
- }
- } else {
- sender.sendMessage(red + "The player " + yellow + args[0] + red + " is either offline or does not exist!");
- }
- }
- else sender.sendMessage(red + "You do not have permission to fish Odda Peoples....");
- }
- else if (cmd.getName().equalsIgnoreCase("FunnyHate")) {
- if (sender.hasPermission("FunnyFoot.hateother")) {
- if (Bukkit.getServer().getPlayer(args[0]) != null) {
- Player targ = Bukkit.getServer().getPlayer(args[0]);
- if (this.FunnyHate.contains(targ)) {
- this.FunnyHate.remove(targ);
- targ.sendMessage(yellow + sender.getName() + " has disabled your Rad FunnyHate!");
- sender.sendMessage(yellow + targ.getDisplayName() + "'s FunnyHate has been disabled!");
- } else {
- this.FunnyHate.add(targ);
- targ.sendMessage(yellow + sender.getName() + " has given you FunnyHate!");
- sender.sendMessage(yellow + targ.getDisplayName() + " has been given FunnyHate!");
- }
- } else {
- sender.sendMessage(red + "The player " + yellow + args[0] + red + " is either offline or does not exist!");
- }
- }
- else sender.sendMessage(red + "You do not have permission to Hate Odda Peoples....");
- }
- else if (cmd.getName().equalsIgnoreCase("FunnySeason")) {
- if (sender.hasPermission("FunnyFoot.seasonother")) {
- if (Bukkit.getServer().getPlayer(args[0]) != null) {
- Player targ = Bukkit.getServer().getPlayer(args[0]);
- if (this.FunnySeason.contains(targ)) {
- this.FunnySeason.remove(targ);
- targ.sendMessage(yellow + sender.getName() + " has disabled your Rad Funny Seasons!");
- sender.sendMessage(yellow + targ.getDisplayName() + "'s FunnySeasons has been disabled!");
- } else {
- this.FunnySeason.add(targ);
- targ.sendMessage(yellow + sender.getName() + " has given you FunnySeason!");
- sender.sendMessage(yellow + targ.getDisplayName() + " has been given FunnySeason!");
- }
- } else {
- sender.sendMessage(red + "The player " + yellow + args[0] + red + " is either offline or does not exist!");
- }
- }
- else sender.sendMessage(red + "You do not have permission to Season Odda Peoples....");
- }
- else if (cmd.getName().equalsIgnoreCase("FunnyLava")) {
- if (sender.hasPermission("FunnyFoot.lavaother")) {
- if (Bukkit.getServer().getPlayer(args[0]) != null) {
- Player targ = Bukkit.getServer().getPlayer(args[0]);
- if (this.FunnyLava.contains(targ)) {
- this.FunnyLava.remove(targ);
- targ.sendMessage(yellow + sender.getName() + " has disabled your Rad Funny Lights!");
- sender.sendMessage(yellow + targ.getDisplayName() + "'s Funnylight has been disabled!");
- } else {
- this.FunnyLove.add(targ);
- targ.sendMessage(yellow + sender.getName() + " has given you FunnyLight!");
- sender.sendMessage(yellow + targ.getDisplayName() + " has been given FunnyLight!");
- }
- } else {
- sender.sendMessage(red + "The player " + yellow + args[0] + red + " is either offline or does not exist!");
- }
- }
- else sender.sendMessage(red + "You do not have permission to Lava Odda Peoples....");
- }
- else if (cmd.getName().equalsIgnoreCase("FunnyExplosion")) {
- if (sender.hasPermission("FunnyFoot.explosionother")) {
- if (Bukkit.getServer().getPlayer(args[0]) != null) {
- Player targ = Bukkit.getServer().getPlayer(args[0]);
- if (this.FunnyEnd.contains(targ)) {
- this.FunnyEnd.remove(targ);
- targ.sendMessage(yellow + sender.getName() + " has disabled your FunnyExplosion!");
- sender.sendMessage(yellow + targ.getDisplayName() + "'s FunnyExplosion has been disabled!");
- } else {
- this.FunnyEnd.add(targ);
- targ.sendMessage(yellow + sender.getName() + " has given you FunnyExplosion!");
- sender.sendMessage(yellow + targ.getDisplayName() + " has been given FunnyExplosion!");
- }
- } else {
- sender.sendMessage(red + "The player " + yellow + args[0] + red + " is either offline or does not exist!");
- }
- }
- else sender.sendMessage(red + "You do not have permission to Explosion Others...well with FunnyFoots....");
- }
- else if (cmd.getName().equalsIgnoreCase("FunnyFireworks")) {
- if (sender.hasPermission("FunnyFoot.fireworksother")) {
- if (Bukkit.getServer().getPlayer(args[0]) != null) {
- Player targ = Bukkit.getServer().getPlayer(args[0]);
- if (this.FunnyExplosion.contains(targ)) {
- this.FunnyExplosion.remove(targ);
- targ.sendMessage(yellow + sender.getName() + " has disabled your FunnyFireworks!");
- sender.sendMessage(yellow + targ.getDisplayName() + "'s FunnyFireworks has been disabled!");
- } else {
- this.FunnyFireworks.add(targ);
- targ.sendMessage(yellow + sender.getName() + " has given you FunnyFireworks!");
- sender.sendMessage(yellow + targ.getDisplayName() + " has been given FunnyFireworks!");
- }
- } else {
- sender.sendMessage(red + "The player " + yellow + args[0] + red + " is either offline or does not exist!");
- }
- }
- else sender.sendMessage(red + "You do not have permission to Fireworks Others...well with FunnyFoots....");
- }
- else if (cmd.getName().equalsIgnoreCase("FunnyRedstone")) {
- if (sender.hasPermission("FunnyFoot.redstoneother")) {
- if (Bukkit.getServer().getPlayer(args[0]) != null) {
- Player targ = Bukkit.getServer().getPlayer(args[0]);
- if (this.FunnyRedstone.contains(targ)) {
- this.FunnyRedstone.remove(targ);
- targ.sendMessage(yellow + sender.getName() + " has disabled your FunnyRedstone!");
- sender.sendMessage(yellow + targ.getDisplayName() + "'s FunnyRedstone has been disabled!");
- } else {
- this.FunnyRedstone.add(targ);
- targ.sendMessage(yellow + sender.getName() + " has given you FunnyRedstone!");
- sender.sendMessage(yellow + targ.getDisplayName() + " has been given FunnyRedstone!");
- }
- } else {
- sender.sendMessage(red + "The player " + yellow + args[0] + red + " is either offline or does not exist!");
- }
- }
- else sender.sendMessage(red + "You do not have permission to Redstone Others...well with FunnyFoots....");
- }
- else if (cmd.getName().equalsIgnoreCase("FunnySlime")) {
- if (sender.hasPermission("FunnyFoot.slimeother")) {
- if (Bukkit.getServer().getPlayer(args[0]) != null) {
- Player targ = Bukkit.getServer().getPlayer(args[0]);
- if (this.FunnySlime.contains(targ)) {
- this.FunnySlime.remove(targ);
- targ.sendMessage(yellow + sender.getName() + " has disabled your FunnySlime!");
- sender.sendMessage(yellow + targ.getDisplayName() + "'s FunnySlime has been disabled!");
- } else {
- this.FunnySlime.add(targ);
- targ.sendMessage(yellow + sender.getName() + " has given you FunnySlime!");
- sender.sendMessage(yellow + targ.getDisplayName() + " has been given FunnySlime!");
- }
- } else {
- sender.sendMessage(red + "The player " + yellow + args[0] + red + " is either offline or does not exist!");
- }
- }
- else sender.sendMessage(red + "You do not have permission to Slime Others...well with FunnyFoots....");
- }
- else if (cmd.getName().equalsIgnoreCase("FunnyFootstep")) {
- if (sender.hasPermission("FunnyFoot.footstepother")) {
- if (Bukkit.getServer().getPlayer(args[0]) != null) {
- Player targ = Bukkit.getServer().getPlayer(args[0]);
- if (this.FunnyFootstep.contains(targ)) {
- this.FunnyFootstep.remove(targ);
- targ.sendMessage(yellow + sender.getName() + " has disabled your FunnyFootstep!");
- sender.sendMessage(yellow + targ.getDisplayName() + "'s FunnyEnd has been disabled!");
- } else {
- this.FunnyFootstep.add(targ);
- targ.sendMessage(yellow + sender.getName() + " has given you FunnyFootstep!");
- sender.sendMessage(yellow + targ.getDisplayName() + " has been given FunnyFootstep!");
- }
- } else {
- sender.sendMessage(red + "The player " + yellow + args[0] + red + " is either offline or does not exist!");
- }
- }
- else sender.sendMessage(red + "You do not have permission to Footstep Others...well with FunnyFoots....");
- }
- else if (cmd.getName().equalsIgnoreCase("funnycheck")) {
- if (sender.hasPermission("FunnyFoot.checkother")) {
- if (Bukkit.getServer().getPlayer(args[0]) != null) {
- Player targ = Bukkit.getServer().getPlayer(args[0]);
- sender.sendMessage(yellow + targ.getDisplayName() + "'s active FunnyFoots modes:");
- if (FunnyFoots.FunnyFire.contains(targ)) {
- sender.sendMessage("- FunnyFire");
- }
- if (this.FunnyDrug.contains(targ)) {
- sender.sendMessage("- FunnyDrug");
- }
- if (this.FunnyPotion.contains(targ)) {
- sender.sendMessage("- FunnyPotion");
- }
- if (this.FunnyEnd.contains(targ)) {
- sender.sendMessage("- FunnyEnd");
- }
- if (this.FunnyHate.contains(targ)) {
- sender.sendMessage("- FunnyHate");
- }
- if (this.FunnyFish.contains(targ)) {
- sender.sendMessage("- FunnyFish");
- }
- if (this.FunnyLava.contains(targ)) {
- sender.sendMessage("- FunnyLava");
- }
- if (this.FunnySeason.contains(targ)) {
- sender.sendMessage("- FunnySeason");
- }
- if (this.FunnyLove.contains(targ)) {
- sender.sendMessage("- FunnyLove");
- }
- if (this.FunnyExplosion.contains(targ)) {
- sender.sendMessage("- FunnyExplosion");
- }
- if (this.FunnyFireworks.contains(targ)) {
- sender.sendMessage("- FunnyFireworks");
- }
- if (this.FunnyRedstone.contains(targ)) {
- sender.sendMessage("- FunnyRedstone");
- }
- if (this.FunnySlime.contains(targ)) {
- sender.sendMessage("- FunnySlime");
- }
- if (this.FunnyFootstep.contains(targ)) {
- sender.sendMessage("- FunnyFootstep");
- }
- if ((!FunnyFoots.FunnyFire.contains(targ)) && (!this.FunnyDrug.contains(targ)) && (!this.FunnyPotion.contains(targ)) && (!this.FunnyFish.contains(targ)) && (!this.FunnyLava.contains(targ)) && (!this.FunnyHate.contains(targ)) && (!this.FunnySeason.contains(targ)) && (!this.FunnyEnd.contains(targ)) && (this.FunnyLove.contains(targ)) && (this.FunnyExplosion.contains(targ)) &&(this.FunnyFireworks.contains(targ)) &&(this.FunnyRedstone.contains(targ)) &&(this.FunnySlime.contains(targ)) &&(this.FunnyFootstep.contains(targ))) {
- sender.sendMessage(targ.getDisplayName() + " does not have any CrazyFeet modes currently activated.");
- }
- }
- else
- {
- sender.sendMessage(red + "The player " + yellow + args[0] + red + " is either offline or does not exist!");
- }
- }
- else sender.sendMessage(red + "You do not have permission to check other people's FunnyFoot modes!");
- }
- else { if (cmd.getName().equalsIgnoreCase("funnydisable")) {
- if (sender.hasPermission("FunnyFoot.disableothers")) {
- if (Bukkit.getServer().getPlayer(args[0]) != null) {
- Player targ = Bukkit.getServer().getPlayer(args[0]);
- if (FunnyFoots.FunnyFire.contains(targ)) {
- FunnyFoots.FunnyFire.remove(targ);
- }
- if (this.FunnyDrug.contains(targ)) {
- this.FunnyDrug.remove(targ);
- }
- if (this.FunnyPotion.contains(targ)) {
- this.FunnyPotion.remove(targ);
- }
- if (this.FunnyEnd.contains(targ)) {
- this.FunnyEnd.remove(targ);
- }
- if (this.FunnyFish.contains(targ)) {
- this.FunnyFish.remove(targ) ;
- }
- if (this.FunnyLava.contains(targ)) {
- this.FunnyLava.remove(targ) ;
- }
- if (this.FunnyHate.contains(targ)) {
- this.FunnyHate.remove(targ) ;
- }
- if (this.FunnySeason.contains(targ)) {
- this.FunnySeason.remove(targ) ;
- }
- if (this.FunnyLove.contains(targ)) {
- this.FunnyLove.remove(targ) ;
- }
- if (this.FunnyExplosion.contains(targ)) {
- this.FunnyExplosion.remove(targ) ;
- }
- if (this.FunnyFireworks.contains(targ)) {
- this.FunnyFireworks.remove(targ) ;
- }
- if (this.FunnyRedstone.contains(targ)) {
- this.FunnyRedstone.remove(targ) ;
- }
- if (this.FunnySlime.contains(targ)) {
- this.FunnySlime.remove(targ) ;
- }
- if (this.FunnyFootstep.contains(targ)) {
- this.FunnyFootstep.remove(targ) ;
- }
- targ.sendMessage(yellow + "All of your FunnyFoots modes have been stolen by " + sender.getName() + "!");
- sender.sendMessage(yellow + "All of " + targ.getDisplayName() + "'s FunnyFoots modes have been Terminated =)!");
- } else {
- sender.sendMessage(red + "The player " + yellow + args[0] + red + " is either offline or does not exist!");
- }
- }
- else sender.sendMessage(red + "You do not have permission to disable other people's FunnyFoots!"); {
- }
- return false;
- }
- }
- }
- return false;
- }
- return false;
- }
- {
- }
- {
- }
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement