mafrans gay code type beat

This commit is contained in:
Super_ 2019-12-20 18:42:13 -05:00
parent 82cd7f2d05
commit 9167c47c2f
12 changed files with 421 additions and 0 deletions

View File

@ -256,6 +256,9 @@ public class TotalFreedomMod extends AeroPlugin<TotalFreedomMod>
amp = bridges.registerService(AMP.class); amp = bridges.registerService(AMP.class);
bridges.start(); bridges.start();
// Emotes
// todo
timer.update(); timer.update();
FLog.info("Version " + pluginVersion + " for " + ServerInterface.COMPILE_NMS_VERSION + " enabled in " + timer.getTotal() + "ms"); FLog.info("Version " + pluginVersion + " for " + ServerInterface.COMPILE_NMS_VERSION + " enabled in " + timer.getTotal() + "ms");

View File

@ -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 = "/<command> [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;
}
}

View File

@ -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 = "/<command> [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;
}
}

View File

@ -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 = "/<command>")
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;
}
}

View File

@ -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 = "/<command> [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;
}
}

View File

@ -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 = "/<command> [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;
}
}

View File

@ -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 = "/<command> [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;
}
}

View File

@ -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 = "/<command> [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;
}
}

View File

@ -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 = "/<command> [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;
}
}

View File

@ -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 = "/<command> [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;
}
}

View File

@ -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 = "/<command> [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;
}
}

View File

@ -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 = "/<command> [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;
}
}