ranks gui

This commit is contained in:
okx-code
2020-08-27 20:28:24 +01:00
parent 598962592b
commit 1b952e9843
6 changed files with 77 additions and 1 deletions
@@ -0,0 +1,22 @@
package sh.okx.rankup.ranksgui;
import org.bukkit.Bukkit;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull;
public class RanksGuiCommand implements CommandExecutor {
@Override
public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label, @NotNull String[] args) {
if (!(sender instanceof Player)) {
return false;
}
Player player = (Player) sender;
player.openInventory(Bukkit.createInventory())
return true;
}
}