EDIT: THIS IS NOT A SUGGESTION.
Heyo people of the internet,
I've recently seen a lot of posts saying "add /report", "report in-game will help", etc. Here's is an explanation why a report command will never work.
NOTE: I am too lazy to do this works with bungee, since I am on my phone. This might contain errors.
First off, let's start with the basic code:
If you do not understand the code, the "normal langauge" explanation is simple, this can be easily abused since it doesn't contains any "prevention". Spam will be real.
But, what will happen if we add a hashlist to prevent player repetition? Random players will still get reported. And true hackers will be only reported once.
But, what about adding a /check and /remove command? Uhh, /check for displayong reported players is useless, staff cannot go into already going matches and the list will be caothic... /remove won't work due to the caothic list.
But, what about if we add a punsihment for random reports? Random player will still get reported.
EDIT: Report with link here can also be used by spambots, useless because they will be banned, but idek
Heyo people of the internet,
I've recently seen a lot of posts saying "add /report", "report in-game will help", etc. Here's is an explanation why a report command will never work.
NOTE: I am too lazy to do this works with bungee, since I am on my phone. This might contain errors.
First off, let's start with the basic code:
Code:
public boolean onCommand (CommandSender sender, Command command, String commandLabel, String[] args){
Player player = (Player) sender;
if(commandLabel.equalsIgnoreCase("report")){
for(Player p : Bukkit.getOnlinePlayers()) {
if(args.length == 1){
if(p.hasPermission("punishment.receive")){
p.sendMessage(ChatColor.GOLD + player.getName() + ChatColor.GREEN + " reported player " + args[0] );
player.sendMessage(ChatColor.GREEN + "Player " + args[0] + " reported.");
}else if(args.length == 0){
player.sendMessage(ChatColor.RED + "Not enough arguments! Mention the player");
}else if(args.length == 2){
p.sendMessage(ChatColor.GOLD + player.getName() + ChatColor.GREEN + " reported player " + args[0] + " with link " + args[1]);
/*
here the returns should go, too lazy to type
*/
If you do not understand the code, the "normal langauge" explanation is simple, this can be easily abused since it doesn't contains any "prevention". Spam will be real.
But, what will happen if we add a hashlist to prevent player repetition? Random players will still get reported. And true hackers will be only reported once.
But, what about adding a /check and /remove command? Uhh, /check for displayong reported players is useless, staff cannot go into already going matches and the list will be caothic... /remove won't work due to the caothic list.
But, what about if we add a punsihment for random reports? Random player will still get reported.
EDIT: Report with link here can also be used by spambots, useless because they will be banned, but idek
Last edited: