mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-11-24 03:05:52 +01:00
herp
This commit is contained in:
parent
3d33088f47
commit
aad9819ae9
@ -119,7 +119,12 @@ public abstract class MPlugin extends JavaPlugin
|
||||
|
||||
public void registerEvent(Event.Type type, Listener listener, Event.Priority priority)
|
||||
{
|
||||
Bukkit.getServer().getPluginManager().registerEvent(type, listener, priority, this);
|
||||
Bukkit.getServer().getPluginManager().registerEvent(type, listener, priority, this);
|
||||
}
|
||||
|
||||
public void registerEvent(Event.Type type, Listener listener)
|
||||
{
|
||||
registerEvent(type, listener, Event.Priority.Normal);
|
||||
}
|
||||
|
||||
// -------------------------------------------- //
|
||||
|
@ -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