Need an extremely simple plugin

Status
This thread has been locked.

9yz

Builder | Open for comissions!
Premium
Feedback score
11
Posts
345
Reactions
109
Resources
0
Hi! I need a super simple plugin that has one command:

/setup
Puts an arrow in the user's first hot bar slot, gunpowder in the second, and a wooden axe inn the third.

As you may have guessed, those are the three tools for VoxelSniper and WorldEdit.

Budget: $0.50

PM me!
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

DerpPotatoMonkey

Feedback score
3
Posts
37
Reactions
8
Resources
0
Lmao
You're right.

Here's the code btw DerpPotatoMonkey
Code:
public class Setup extends JavaPlugin {
    @Override
    public void onEnable () {
        getCommand("setup").setExecutor(this, this);
    }

  
    public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
        if (sender instanceof Player) {
            Player player = (Player) sender;

            player.getInventory().addItem(new ItemStack(Material.WOODEN_AXE));
            player.getInventory().addItem(new ItemStack(Material.SULFUR));
            player.getInventory().addItem(new ItemStack(Material.ARROW));
            return true;
        }

  
        sender.sendMessage("You have to be a player to use this command!");
        return false;
    }
}
 
Status
This thread has been locked.
Top