Minecraft PC IP: play.cubecraft.net
  • We're running an internal migration of all old players' stats to our new highly advanced statistics tracking backend. This means that stat changes will be a bit delayed while we ingest this huge backlog of data. Nothing is being lost, it'll just take a bit longer to show up in the in-game UIs.

DrHam

Forum Veteran
Sep 15, 2015
3,615
4,166
518
Kepler-452b
Hello, i want 2 report @Joe Henry he uses antifly and killaura
Hello, most of you (hopefully, they read this) have suggested a report plugin, and another part of you answered "Can be easily abused", why? Here's your answer: a shitty code done in 20 minutes that @Foodyling can do in under 5 minutesa

Code:
package eu.hangar;

import org.bukkit.Bukkit;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.ChatColor;

public class report extends JavaPlugin{
 
    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(p.hasPermission("punishment.receive")){
               if(args.length == 1){
         
                p.sendMessage(ChatColor.GOLD + player.getName() + ChatColor.GREEN + " reported player " + args[0] ); 
         
           }else if(args.length == 0){
                    player.sendMessage(ChatColor.RED + "Not enough arguments! Mention the player");
//kapap
           }else if(args.length == 2){
                player.sendMessage(ChatColor.GOLD + player.getName() + ChatColor.GREEN + " reported player " + args[0] + "  with link " + args[1]);

             
            }
     
return true;
    }
 
    return true;
}
        return true;
    }

        return false;
    }
}



//hello I am a random comment
 
Last edited:

DrHam

Forum Veteran
Sep 15, 2015
3,615
4,166
518
Kepler-452b
Members Online

Members online

Latest posts

Latest profile posts

LemonyBreak459! wrote on iTz1Hamood's profile.
Good luck for ur Life
And Thanks for being a Friend and the MOD !
AliWarrior wrote on iTz1Hamood's profile.
Thank you for everything and best of luck in your life!
kevin020007 wrote on iTz1Hamood's profile.
Dear Hamood, Thank you for being an amazing friend for me during my cubecraft time with you and your time as bedrock cubecraft moderator and upcoming java cubecraft moderator. Thank you for helping the ccl staff with hosting and the community by hosting pg's and thank you for the great time we had together. I hope to see you back sooner on the battlefield then I can imagine. We love you hamood❤️❤️
Red crits wrote on iTz1Hamood's profile.
Hey Hamood, you were a wonderful team member. Wish you the very best for your future endeavors:) see ya around!
ItzJuan wrote on iTz1Hamood's profile.
Onward with life, good luck from now on!
Top Bottom