Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.spigot.developerrebel;
- import org.bukkit.command.Command;
- import org.bukkit.command.CommandSender;
- import org.bukkit.entity.Player;
- import org.bukkit.plugin.java.JavaPlugin;
- public class newPlugin extends JavaPlugin {
- @Override
- public void onEnable() {
- this.getLogger().info("enabled succesfully!");
- }
- @Override
- public void onDisable() {
- this.getLogger().info("disabled succesfully");
- }
- @Override
- public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
- if (cmd.getname().equalsIgnoreCase("spawn")) {
- if (sender instanceof Player)
- Player player = (Player) sender;
- if ( player.hasPermission("sp.spawn"));
- }
- return true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement