herp
This commit is contained in:
parent
3d33088f47
commit
aad9819ae9
@ -122,6 +122,11 @@ public abstract class MPlugin extends JavaPlugin
|
||||
Bukkit.getServer().getPluginManager().registerEvent(type, listener, priority, this);
|
||||
}
|
||||
|
||||
public void registerEvent(Event.Type type, Listener listener)
|
||||
{
|
||||
registerEvent(type, listener, Event.Priority.Normal);
|
||||
}
|
||||
|
||||
// -------------------------------------------- //
|
||||
// Some inits...
|
||||
// You are supposed to override these in the plugin if you aren't satisfied with the defaults
|
||||
|
@ -19,6 +19,7 @@ public class MPluginSecretServerListener extends ServerListener
|
||||
// reference command will be used to prevent "unknown command" console messages
|
||||
try
|
||||
{
|
||||
@SuppressWarnings("unchecked")
|
||||
Map<String, Object> refCmd = (Map<String, Object>) p.getDescription().getCommands();
|
||||
if (refCmd != null && !refCmd.isEmpty())
|
||||
refCommand = (String)(refCmd.keySet().toArray()[0]);
|
||||
|
Loading…
Reference in New Issue
Block a user