Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.github.riking.singlefileplugins;
- import org.bukkit.Bukkit;
- import org.bukkit.command.Command;
- import org.bukkit.command.CommandSender;
- import org.bukkit.event.Listener;
- import org.bukkit.plugin.java.JavaPlugin;
- public class OpCommandStub extends JavaPlugin implements Listener {
- @Override
- public void onEnable() {
- getCommand("op").setExecutor(this);
- getServer().getScheduler().runTask(this, new Runnable() {
- public void run() {
- Bukkit.getPluginCommand("op").setExecutor(OpCommandStub.this);
- }
- });
- }
- public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
- getLogger().warning(sender.getName() + " attempted to use /op");
- return true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement