Fixing some errors related to WG

This commit is contained in:
nossr50
2019-01-22 17:59:45 -08:00
parent cbb726e020
commit cf0b60d165
3 changed files with 41 additions and 55 deletions

View File

@@ -219,6 +219,13 @@ public class mcMMO extends JavaPlugin {
worldBlacklist = new WorldBlacklist(this);
}
@Override
public void onLoad()
{
if(getServer().getPluginManager().getPlugin("WorldGuard") != null)
WorldGuardManager.getInstance().registerFlags();
}
/**
* Things to be run when the plugin is disabled.
*/