Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.tylercreator.guichunk.commands;
- import org.bukkit.command.Command;
- import org.bukkit.command.CommandExecutor;
- import org.bukkit.command.CommandSender;
- import org.bukkit.entity.Player;
- import me.tylercreator.guichunk.Main;
- import me.tylercreator.guichunk.ui.gui;
- public class guicommand implements CommandExecutor {
- private Main plugin;
- public guicommand(Main plugin) {
- this.plugin = plugin;
- plugin.getCommand("guichunk").setExecutor(this);
- }
- @Override
- public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
- // TODO Auto-generated method stub
- if (!(sender instanceof Player)) {
- return true;
- }
- Player p = (Player) sender;
- if (p.hasPermission("guichunk.user")) {
- p.openInventory(gui.GUI(p));
- }
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement