Added command registration to plugin config file. Registered commands are sent to the corresponding plugin.onCommand method when executed.
By: VictorD <victor.danell@gmail.com>
This commit is contained in:
@@ -3,6 +3,7 @@ package org.bukkit.fillr;
|
||||
import org.bukkit.*;
|
||||
import org.bukkit.plugin.*;
|
||||
import org.bukkit.plugin.java.*;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.*;
|
||||
|
||||
import java.io.File;
|
||||
@@ -30,4 +31,8 @@ public class Fillr extends JavaPlugin {
|
||||
listener = new FillrListener(getServer());
|
||||
getServer().getPluginManager().registerEvent(Event.Type.PLAYER_COMMAND, listener, Event.Priority.Normal, this);
|
||||
}
|
||||
|
||||
public void onCommand(Player player, String command, String[] args) {
|
||||
// TODO Auto-generated method stub
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user