1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-31 10:11:46 +02:00

SEVERE error messages for other plugins, that try to manually enable Essentials, FakePermissions or GroupManager

This commit is contained in:
snowleo
2011-06-26 01:43:19 +02:00
parent 27c84ceaac
commit b63ae9b771
3 changed files with 13 additions and 0 deletions

View File

@@ -63,6 +63,10 @@ public class GroupManager extends JavaPlugin {
@Override
public void onEnable() {
if (!Thread.currentThread().getStackTrace()[5].getMethodName().equals("loadPlugin")) {
logger.log(Level.SEVERE, "Another plugin is trying to enable Essentials manually. Don't do this! It's probably "
+ Thread.currentThread().getStackTrace()[5].getClassName());
}
GroupManager.logger.setUseParentHandlers(false);
GMLoggerHandler ch = new GMLoggerHandler();
GroupManager.logger.addHandler(ch);