From 9167c47c2f4d9400501f90eedc12c129c06fc438 Mon Sep 17 00:00:00 2001 From: Super_ Date: Fri, 20 Dec 2019 18:42:13 -0500 Subject: [PATCH] mafrans gay code type beat --- .../totalfreedommod/TotalFreedomMod.java | 3 ++ .../command/Command_cheat.java | 36 +++++++++++++ .../command/Command_dance.java | 50 +++++++++++++++++++ .../totalfreedommod/command/Command_f.java | 25 ++++++++++ .../command/Command_greet.java | 46 +++++++++++++++++ .../command/Command_highfive.java | 38 ++++++++++++++ .../totalfreedommod/command/Command_hug.java | 36 +++++++++++++ .../command/Command_ragehayes.java | 39 +++++++++++++++ .../command/Command_scream.java | 37 ++++++++++++++ .../command/Command_smile.java | 37 ++++++++++++++ .../command/Command_thumbsup.java | 37 ++++++++++++++ .../totalfreedommod/command/Command_vore.java | 37 ++++++++++++++ 12 files changed, 421 insertions(+) create mode 100644 src/main/java/me/totalfreedom/totalfreedommod/command/Command_cheat.java create mode 100644 src/main/java/me/totalfreedom/totalfreedommod/command/Command_dance.java create mode 100644 src/main/java/me/totalfreedom/totalfreedommod/command/Command_f.java create mode 100644 src/main/java/me/totalfreedom/totalfreedommod/command/Command_greet.java create mode 100644 src/main/java/me/totalfreedom/totalfreedommod/command/Command_highfive.java create mode 100644 src/main/java/me/totalfreedom/totalfreedommod/command/Command_hug.java create mode 100644 src/main/java/me/totalfreedom/totalfreedommod/command/Command_ragehayes.java create mode 100644 src/main/java/me/totalfreedom/totalfreedommod/command/Command_scream.java create mode 100644 src/main/java/me/totalfreedom/totalfreedommod/command/Command_smile.java create mode 100644 src/main/java/me/totalfreedom/totalfreedommod/command/Command_thumbsup.java create mode 100644 src/main/java/me/totalfreedom/totalfreedommod/command/Command_vore.java diff --git a/src/main/java/me/totalfreedom/totalfreedommod/TotalFreedomMod.java b/src/main/java/me/totalfreedom/totalfreedommod/TotalFreedomMod.java index 48893d42..7db38dd7 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/TotalFreedomMod.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/TotalFreedomMod.java @@ -256,6 +256,9 @@ public class TotalFreedomMod extends AeroPlugin amp = bridges.registerService(AMP.class); bridges.start(); + // Emotes + // todo + timer.update(); FLog.info("Version " + pluginVersion + " for " + ServerInterface.COMPILE_NMS_VERSION + " enabled in " + timer.getTotal() + "ms"); diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_cheat.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_cheat.java new file mode 100644 index 00000000..cb1c4d78 --- /dev/null +++ b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_cheat.java @@ -0,0 +1,36 @@ +package me.totalfreedom.totalfreedommod.command; + +import me.totalfreedom.totalfreedommod.rank.Rank; +import me.totalfreedom.totalfreedommod.util.FUtil; +import org.bukkit.Bukkit; +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.BOTH, cooldown = 20) +@CommandParameters(description = "Cheat on a block game", usage = "/ [player]") +public class Command_cheat extends FreedomCommand +{ + @Override + public boolean run(final CommandSender sender, final Player playerSender, final Command cmd, final String commandLabel, final String[] args, final boolean senderIsConsole) + { + if (args.length > 1) + { + return false; + } + if (args.length == 1) + { + Player player = Bukkit.getPlayer(args[0]); + if (player == null) + { + sender.sendMessage(FreedomCommand.PLAYER_NOT_FOUND); + return true; + } + FUtil.bcastMsg(ChatColor.RED + sender.getName() + ChatColor.AQUA + " just accused " + ChatColor.RED + player.getName() + ChatColor.AQUA + " of cheating! Everyone call them out!"); + return true; + } + FUtil.bcastMsg(ChatColor.RED + sender.getName() + ChatColor.AQUA + " just cheated on a block game!"); + return true; + } +} diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_dance.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_dance.java new file mode 100644 index 00000000..6c0202aa --- /dev/null +++ b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_dance.java @@ -0,0 +1,50 @@ +package me.totalfreedom.totalfreedommod.command; + +import me.totalfreedom.totalfreedommod.rank.Rank; +import me.totalfreedom.totalfreedommod.util.FUtil; +import org.bukkit.Bukkit; +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.BOTH, cooldown = 20) +@CommandParameters(description = "Dance with one or more people!", usage = "/ [player] [player2]") +public class Command_dance extends FreedomCommand +{ + @Override + public boolean run(final CommandSender sender, final Player playerSender, final Command cmd, final String commandLabel, final String[] args, final boolean senderIsConsole) + { + if (args.length > 2) + { + return false; + } + if (args.length == 2) + { + Player player = Bukkit.getPlayer(args[0]); + Player player2 = Bukkit.getPlayer(args[1]); + if (player == null || player2 == null) + { + sender.sendMessage(FreedomCommand.PLAYER_NOT_FOUND); + return true; + } + FUtil.bcastMsg(ChatColor.RED + sender.getName() + ChatColor.AQUA + ", " + + ChatColor.RED + player.getName() + ChatColor.AQUA + " and " + + ChatColor.RED + player2.getName() + ChatColor.AQUA + " dance together as a trio!"); + return true; + } + if (args.length == 1) + { + Player player = Bukkit.getPlayer(args[0]); + if (player == null) + { + sender.sendMessage(FreedomCommand.PLAYER_NOT_FOUND); + return true; + } + FUtil.bcastMsg(ChatColor.RED + sender.getName() + ChatColor.AQUA + " takes " + ChatColor.RED + player.getName() + ChatColor.AQUA + " up for a waltz!"); + return true; + } + FUtil.bcastMsg(ChatColor.RED + sender.getName() + ChatColor.AQUA + " spins around!"); + return true; + } +} diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_f.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_f.java new file mode 100644 index 00000000..6d206ecb --- /dev/null +++ b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_f.java @@ -0,0 +1,25 @@ +package me.totalfreedom.totalfreedommod.command; + +import me.totalfreedom.totalfreedommod.rank.Rank; +import me.totalfreedom.totalfreedommod.util.FUtil; +import org.bukkit.Bukkit; +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.BOTH, cooldown = 20) +@CommandParameters(description = "Pay your respects..", usage = "/") +public class Command_f extends FreedomCommand +{ + @Override + public boolean run(final CommandSender sender, final Player playerSender, final Command cmd, final String commandLabel, final String[] args, final boolean senderIsConsole) + { + if (args.length != 0) + { + return false; + } + FUtil.bcastMsg(ChatColor.RED + sender.getName() + ChatColor.AQUA + " just payed their respects! Type " + ChatColor.RED + "F " + ChatColor.AQUA + "to pay your respects!"); + return true; + } +} diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_greet.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_greet.java new file mode 100644 index 00000000..acab50bc --- /dev/null +++ b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_greet.java @@ -0,0 +1,46 @@ +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.Bukkit; +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.BOTH, cooldown = 20) +@CommandParameters(description = "Greets a user.", usage = "/ [player] [message]") +public class Command_greet extends FreedomCommand +{ + @Override + public boolean run(final CommandSender sender, final Player playerSender, final Command cmd, final String commandLabel, final String[] args, final boolean senderIsConsole) + { + if (args.length >= 2) + { + Player player = Bukkit.getPlayer(args[0]); + if (player == null) + { + sender.sendMessage(FreedomCommand.PLAYER_NOT_FOUND); + return true; + } + FUtil.bcastMsg(ChatColor.RED + sender.getName() + ChatColor.AQUA + " greets " + + ChatColor.RED + player.getName() + ChatColor.AQUA + " by saying '" + + ChatColor.RED + StringUtils.join(args, " ", 1, args.length) + ChatColor.AQUA + "'."); + return true; + } + if (args.length == 1) + { + Player player = Bukkit.getPlayer(args[0]); + if (player == null) + { + sender.sendMessage(FreedomCommand.PLAYER_NOT_FOUND); + return true; + } + FUtil.bcastMsg(ChatColor.RED + sender.getName() + ChatColor.AQUA + " takes " + ChatColor.RED + player.getName() + ChatColor.AQUA + " up for a waltz!"); + return true; + } + FUtil.bcastMsg(ChatColor.RED + sender.getName() + ChatColor.AQUA + " spins around!"); + return true; + } +} diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_highfive.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_highfive.java new file mode 100644 index 00000000..e067b5e6 --- /dev/null +++ b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_highfive.java @@ -0,0 +1,38 @@ +package me.totalfreedom.totalfreedommod.command; + +import me.totalfreedom.totalfreedommod.rank.Rank; +import me.totalfreedom.totalfreedommod.util.FUtil; +import org.bukkit.Bukkit; +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.BOTH, cooldown = 20) +@CommandParameters(description = "Gives someone a high five!", usage = "/ [player]") +public class Command_highfive extends FreedomCommand +{ + @Override + public boolean run(final CommandSender sender, final Player playerSender, final Command cmd, final String commandLabel, final String[] args, final boolean senderIsConsole) + { + if (args.length > 1) + { + return false; + } + if (args.length == 1) + { + Player player = Bukkit.getPlayer(args[0]); + if (player == null) + { + sender.sendMessage(FreedomCommand.PLAYER_NOT_FOUND); + return true; + } + FUtil.bcastMsg(ChatColor.RED + sender.getName() + ChatColor.AQUA + " gives a high five to " + ChatColor.RED + player.getName() + ChatColor.AQUA + "!"); + FUtil.bcastMsg(ChatColor.AQUA + "Good job " + ChatColor.RED + sender.getName() + ChatColor.AQUA + "!"); + return true; + } + FUtil.bcastMsg(ChatColor.RED + sender.getName() + ChatColor.AQUA + " raises their palm for a high five"); + FUtil.bcastMsg(ChatColor.AQUA + "but there was noone to answer."); + return true; + } +} diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_hug.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_hug.java new file mode 100644 index 00000000..2b7e8702 --- /dev/null +++ b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_hug.java @@ -0,0 +1,36 @@ +package me.totalfreedom.totalfreedommod.command; + +import me.totalfreedom.totalfreedommod.rank.Rank; +import me.totalfreedom.totalfreedommod.util.FUtil; +import org.bukkit.Bukkit; +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.BOTH, cooldown = 20) +@CommandParameters(description = "Hug someone <3", usage = "/ [player]") +public class Command_hug extends FreedomCommand +{ + @Override + public boolean run(final CommandSender sender, final Player playerSender, final Command cmd, final String commandLabel, final String[] args, final boolean senderIsConsole) + { + if (args.length > 1) + { + return false; + } + if (args.length == 1) + { + Player player = Bukkit.getPlayer(args[0]); + if (player == null) + { + sender.sendMessage(FreedomCommand.PLAYER_NOT_FOUND); + return true; + } + FUtil.bcastMsg(ChatColor.RED + sender.getName() + ChatColor.AQUA + " hugs " + ChatColor.RED + player.getName() + ChatColor.AQUA + " " + ChatColor.LIGHT_PURPLE + "<3"); + return true; + } + FUtil.bcastMsg(ChatColor.RED + sender.getName() + ChatColor.AQUA + " looks like they really need a hug."); + return true; + } +} diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_ragehayes.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_ragehayes.java new file mode 100644 index 00000000..731eb2b5 --- /dev/null +++ b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_ragehayes.java @@ -0,0 +1,39 @@ +package me.totalfreedom.totalfreedommod.command; + +import me.totalfreedom.totalfreedommod.rank.Rank; +import me.totalfreedom.totalfreedommod.util.FUtil; +import org.bukkit.Bukkit; +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.BOTH, cooldown = 20) +@CommandParameters(description = "Hmm...", usage = "/ [player]") +public class Command_ragehayes extends FreedomCommand +{ + @Override + public boolean run(final CommandSender sender, final Player playerSender, final Command cmd, final String commandLabel, final String[] args, final boolean senderIsConsole) + { + if (args.length > 1) + { + return false; + } + if (args.length == 1) + { + Player player = Bukkit.getPlayer(args[0]); + if (player == null) + { + sender.sendMessage(FreedomCommand.PLAYER_NOT_FOUND); + return true; + } + FUtil.bcastMsg(ChatColor.RED + sender.getName() + ChatColor.AQUA + " just accused " + + ChatColor.RED + player.getName() + ChatColor.AQUA + " of being " + ChatColor.RED + "RageHayes's accomplice!" + + ChatColor.AQUA + "(RageHayes cheats on SMP) Everyone call them out!"); + return true; + } + FUtil.bcastMsg(ChatColor.RED + sender.getName() + ChatColor.AQUA + " is an accomplice of " + + ChatColor.RED + "RageHayes" + ChatColor.AQUA + ", the one who cheated on " + ChatColor.RED + "SMP" + ChatColor.AQUA + "!"); + return true; + } +} diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_scream.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_scream.java new file mode 100644 index 00000000..6ffc4538 --- /dev/null +++ b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_scream.java @@ -0,0 +1,37 @@ +package me.totalfreedom.totalfreedommod.command; + +import me.totalfreedom.totalfreedommod.rank.Rank; +import me.totalfreedom.totalfreedommod.util.FUtil; +import org.bukkit.Bukkit; +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.BOTH, cooldown = 20) +@CommandParameters(description = "Blatantly scream towards yourself or someone else", usage = "/ [player]") +public class Command_scream extends FreedomCommand +{ + @Override + public boolean run(final CommandSender sender, final Player playerSender, final Command cmd, final String commandLabel, final String[] args, final boolean senderIsConsole) + { + if (args.length > 1) + { + return false; + } + if (args.length == 1) + { + Player player = Bukkit.getPlayer(args[0]); + if (player == null) + { + sender.sendMessage(FreedomCommand.PLAYER_NOT_FOUND); + return true; + } + FUtil.bcastMsg(ChatColor.RED + sender.getName() + ChatColor.AQUA + " is screaming at " + + ChatColor.RED + player.getName() + ChatColor.AQUA + "!"); + return true; + } + FUtil.bcastMsg(ChatColor.RED + sender.getName() + ChatColor.AQUA + " is " + ChatColor.RED + "screaming!"); + return true; + } +} diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_smile.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_smile.java new file mode 100644 index 00000000..664f5abe --- /dev/null +++ b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_smile.java @@ -0,0 +1,37 @@ +package me.totalfreedom.totalfreedommod.command; + +import me.totalfreedom.totalfreedommod.rank.Rank; +import me.totalfreedom.totalfreedommod.util.FUtil; +import org.bukkit.Bukkit; +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.BOTH, cooldown = 20) +@CommandParameters(description = "Smiles!", usage = "/ [player]") +public class Command_smile extends FreedomCommand +{ + @Override + public boolean run(final CommandSender sender, final Player playerSender, final Command cmd, final String commandLabel, final String[] args, final boolean senderIsConsole) + { + if (args.length > 1) + { + return false; + } + if (args.length == 1) + { + Player player = Bukkit.getPlayer(args[0]); + if (player == null) + { + sender.sendMessage(FreedomCommand.PLAYER_NOT_FOUND); + return true; + } + FUtil.bcastMsg(ChatColor.RED + sender.getName() + ChatColor.AQUA + " gives " + + ChatColor.RED + player.getName() + ChatColor.AQUA + " a nice big smile."); + return true; + } + FUtil.bcastMsg(ChatColor.RED + sender.getName() + ChatColor.AQUA + " is smiling!"); + return true; + } +} diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_thumbsup.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_thumbsup.java new file mode 100644 index 00000000..9781bede --- /dev/null +++ b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_thumbsup.java @@ -0,0 +1,37 @@ +package me.totalfreedom.totalfreedommod.command; + +import me.totalfreedom.totalfreedommod.rank.Rank; +import me.totalfreedom.totalfreedommod.util.FUtil; +import org.bukkit.Bukkit; +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.BOTH, cooldown = 20) +@CommandParameters(description = "Give someone a thumbs up.", usage = "/ [player]") +public class Command_thumbsup extends FreedomCommand +{ + @Override + public boolean run(final CommandSender sender, final Player playerSender, final Command cmd, final String commandLabel, final String[] args, final boolean senderIsConsole) + { + if (args.length > 1) + { + return false; + } + if (args.length == 1) + { + Player player = Bukkit.getPlayer(args[0]); + if (player == null) + { + sender.sendMessage(FreedomCommand.PLAYER_NOT_FOUND); + return true; + } + FUtil.bcastMsg(ChatColor.RED + sender.getName() + ChatColor.AQUA + " gives a big thumbs up to " + + ChatColor.RED + player.getName() + ChatColor.AQUA + "!"); + return true; + } + FUtil.bcastMsg(ChatColor.RED + sender.getName() + ChatColor.AQUA + " gives a thumbs up!"); + return true; + } +} diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_vore.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_vore.java new file mode 100644 index 00000000..09df7d9d --- /dev/null +++ b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_vore.java @@ -0,0 +1,37 @@ +package me.totalfreedom.totalfreedommod.command; + +import me.totalfreedom.totalfreedommod.rank.Rank; +import me.totalfreedom.totalfreedommod.util.FUtil; +import org.bukkit.Bukkit; +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.BOTH, cooldown = 20) +@CommandParameters(description = "Vore yourself or someone else..", usage = "/ [player]") +public class Command_vore extends FreedomCommand +{ + @Override + public boolean run(final CommandSender sender, final Player playerSender, final Command cmd, final String commandLabel, final String[] args, final boolean senderIsConsole) + { + if (args.length > 1) + { + return false; + } + if (args.length == 1) + { + Player player = Bukkit.getPlayer(args[0]); + if (player == null) + { + sender.sendMessage(FreedomCommand.PLAYER_NOT_FOUND); + return true; + } + FUtil.bcastMsg(ChatColor.RED + sender.getName() + ChatColor.AQUA + " just vored " + + ChatColor.RED + player.getName() + ChatColor.AQUA + "!"); + return true; + } + FUtil.bcastMsg(ChatColor.RED + sender.getName() + ChatColor.AQUA + " just vored themselves. They weren't important anyways."); + return true; + } +}