Skip to content
Snippets Groups Projects
Commit 74b24442 authored by Zandor Smith's avatar Zandor Smith :computer:
Browse files

+ Some more main files.

parent f9967be4
No related branches found
No related tags found
No related merge requests found
package com.zandor300.ultimatekits;
import com.zandor300.ultimatekits.commands.KitCommand;
import com.zandor300.ultimatekits.commands.UltimateKitsCommand;
import com.zandor300.ultimatekits.enums.Kit;
import com.zandor300.ultimatekits.inventories.KitMenu;
import com.zandor300.zsutilities.commandsystem.CommandManager;
import com.zandor300.zsutilities.utilities.Chat;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
......@@ -62,6 +65,12 @@ public class UltimateKits extends JavaPlugin {
}, 20l, 20l);
chat.sendConsoleMessage("Started timers.");
chat.sendConsoleMessage("Registering commands...");
CommandManager cm = new CommandManager();
cm.registerCommand(new KitCommand(), this);
cm.registerCommand(new UltimateKitsCommand(), this);
chat.sendConsoleMessage("Registered commands.");
chat.sendConsoleMessage("Everything is setup!");
chat.sendConsoleMessage("Enabled.");
}
......
package com.zandor300.ultimatekits.commands;
import com.zandor300.ultimatekits.inventories.KitMenu;
import com.zandor300.zsutilities.commandsystem.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
/**
* Created by Zandor on 3/23/15.
*/
public class KitCommand extends Command {
public KitCommand() {
super("kit", "Open the kit gui.");
}
@Override
public void execute(CommandSender sender, String[] args) {
if(!(sender instanceof Player))
return;
KitMenu.open((Player) sender);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment