From 4f2da2ddd8240370d058b41c7f56de9c2a2f55ad Mon Sep 17 00:00:00 2001 From: Niklas Date: Sat, 27 Jun 2020 13:30:15 +0200 Subject: [PATCH] dont enable plugin when not in hardcore --- .../org/kapelle/hardcore_revive/HardcoreRevive.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/kapelle/hardcore_revive/HardcoreRevive.java b/src/main/java/org/kapelle/hardcore_revive/HardcoreRevive.java index 8386ad4..00eaddb 100644 --- a/src/main/java/org/kapelle/hardcore_revive/HardcoreRevive.java +++ b/src/main/java/org/kapelle/hardcore_revive/HardcoreRevive.java @@ -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."); + } - dropHead = new DropHead(this); - summonHead = new SummonHead(this); } } \ No newline at end of file