Sueta
RA

Random Number

Release 1.1

Allow's you to do, /random. /random will return a random number 1-1000

·Plugin

This is an extremely simple plugin. It allows you to do /random.

When you do /random it will return a random number 1-1000.

It will return: Your random number is <>!

Commands / Permmisions: /random - random.number.

Warning: I am not actively working on this Plugin.
If you want a feature added, just PM me and Ill try to add it as soon as Possible.

public boolean onCommand(CommandSender sender, org.bukkit.command.Command cmd, String label, String[] args) {
        Player p = (Player)sender;
        Random rnd = new Random();
        int abc = rnd.nextInt(1000); // +1 if you want 1-100, otherwise will be 0-99.
        if (cmd.getName().equalsIgnoreCase("random")) {
            if (p.hasPermission("random.number"));
               if (args.length == 0);
            p.sendMessage(ChatColor.GREEN + "Your random number is " + ChatColor.GOLD + abc + ChatColor.GREEN + "!");

Similar projects

Plugin →