diff --git a/src/com/loohp/interactivechat/Hooks/EssentialsNicknames.java b/src/com/loohp/interactivechat/Hooks/EssentialsNicknames.java index e7c4a03e..ce36bc9b 100644 --- a/src/com/loohp/interactivechat/Hooks/EssentialsNicknames.java +++ b/src/com/loohp/interactivechat/Hooks/EssentialsNicknames.java @@ -44,7 +44,9 @@ public void onEssentialsReload(PlayerCommandPreprocessEvent event) { @EventHandler(priority=EventPriority.HIGHEST, ignoreCancelled = true) public void onEssentialsNickChange(NickChangeEvent event) { - InteractiveChat.essenNick.put(event.getAffected().getBase(), prefix + event.getValue()); + try { + InteractiveChat.essenNick.put(event.getAffected().getBase(), prefix + event.getValue()); + } catch (Exception ignore) {} } @EventHandler diff --git a/src/com/loohp/interactivechat/InteractiveChat.java b/src/com/loohp/interactivechat/InteractiveChat.java index 2d03a96f..73713d43 100644 --- a/src/com/loohp/interactivechat/InteractiveChat.java +++ b/src/com/loohp/interactivechat/InteractiveChat.java @@ -33,6 +33,7 @@ import com.loohp.interactivechat.Updater.Updater; import com.loohp.interactivechat.Utils.MCVersion; import com.loohp.interactivechat.Utils.MaterialUtils; +import com.loohp.interactivechat.Utils.PotionUtils; import com.loohp.interactivechat.Utils.RarityUtils; public class InteractiveChat extends JavaPlugin { @@ -191,6 +192,7 @@ public void onEnable() { MaterialUtils.setupLang(); RarityUtils.setupRarity(); + PotionUtils.setupPotions(); Charts.setup(metrics); diff --git a/src/plugin.yml b/src/plugin.yml index 3c890e3e..594ac899 100644 --- a/src/plugin.yml +++ b/src/plugin.yml @@ -1,6 +1,6 @@ name: InteractiveChat author: loohp -version: 2.2.6 +version: 2.2.7 main: com.loohp.interactivechat.InteractiveChat api-version: 1.13 description: Make the chat interactive