dont enable plugin when not in hardcore
This commit is contained in:
parent
93d2661d90
commit
4f2da2ddd8
@ -8,9 +8,13 @@ public class HardcoreRevive extends JavaPlugin {
|
||||
|
||||
@Override
|
||||
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.");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user