mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 12:23:59 +00:00
Copy&Paste is bad.
This commit is contained in:
parent
28db891aa5
commit
e652ed2981
2 changed files with 2 additions and 2 deletions
|
@ -57,7 +57,7 @@ public class Permissions extends JavaPlugin {
|
||||||
@Override
|
@Override
|
||||||
public void onEnable() {
|
public void onEnable() {
|
||||||
if (!Thread.currentThread().getStackTrace()[5].getMethodName().equals("loadPlugin")) {
|
if (!Thread.currentThread().getStackTrace()[5].getMethodName().equals("loadPlugin")) {
|
||||||
Logger.getLogger("Minecraft").log(Level.SEVERE, "Another plugin is trying to enable Essentials manually. Don't do this! It's probably "
|
Logger.getLogger("Minecraft").log(Level.SEVERE, "Another plugin is trying to enable Permissions manually. Don't do this! It's probably "
|
||||||
+ Thread.currentThread().getStackTrace()[5].getClassName());
|
+ Thread.currentThread().getStackTrace()[5].getClassName());
|
||||||
}
|
}
|
||||||
Server = this.getServer();
|
Server = this.getServer();
|
||||||
|
|
|
@ -64,7 +64,7 @@ public class GroupManager extends JavaPlugin {
|
||||||
@Override
|
@Override
|
||||||
public void onEnable() {
|
public void onEnable() {
|
||||||
if (!Thread.currentThread().getStackTrace()[5].getMethodName().equals("loadPlugin")) {
|
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 "
|
logger.log(Level.SEVERE, "Another plugin is trying to enable GroupManager manually. Don't do this! It's probably "
|
||||||
+ Thread.currentThread().getStackTrace()[5].getClassName());
|
+ Thread.currentThread().getStackTrace()[5].getClassName());
|
||||||
}
|
}
|
||||||
GroupManager.logger.setUseParentHandlers(false);
|
GroupManager.logger.setUseParentHandlers(false);
|
||||||
|
|
Loading…
Reference in a new issue