dont enable plugin when not in hardcore

This commit is contained in:
Niklas 2020-06-27 13:30:15 +02:00
parent 93d2661d90
commit 4f2da2ddd8

View File

@ -8,9 +8,13 @@ public class HardcoreRevive extends JavaPlugin {
@Override @Override
public void onEnable() { public void onEnable() {
this.getLogger().info("hardcore-revive plugin enabled"); if(this.getServer().isHardcore()){
dropHead = new DropHead(this);
summonHead = new SummonHead(this);
this.getLogger().info("hardcore-revive plugin enabled.");
}else{
this.getLogger().info("Not running in hardcore mode. hardcore-revive disabled.");
}
dropHead = new DropHead(this);
summonHead = new SummonHead(this);
} }
} }