1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-09-25 05:41:36 +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 5fefce5972
commit 1161c4e647
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);