From 7ef32bf2a38d4f2850d3dc9ccd6991387b160cbd Mon Sep 17 00:00:00 2001 From: Daniel V Date: Sun, 18 Feb 2024 17:11:47 -0500 Subject: [PATCH] Remove sys out statements. --- .../listeners/player/PlayerChangeWorldListener.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/main/java/me/lokka30/phantomworlds/listeners/player/PlayerChangeWorldListener.java b/src/main/java/me/lokka30/phantomworlds/listeners/player/PlayerChangeWorldListener.java index f519e2a..8a18c69 100644 --- a/src/main/java/me/lokka30/phantomworlds/listeners/player/PlayerChangeWorldListener.java +++ b/src/main/java/me/lokka30/phantomworlds/listeners/player/PlayerChangeWorldListener.java @@ -62,8 +62,6 @@ public void onChangeWorld(PlayerChangedWorldEvent event) { event.getPlayer().setGameMode(mode); } - System.out.println("Effects Checks"); - final String cfgPrevPath = "worlds-to-load." + event.getFrom().getName(); if(PhantomWorlds.instance().data.getConfig().contains(cfgPrevPath + ".effects") && PhantomWorlds.instance().data.getConfig().isConfigurationSection(cfgPrevPath + ".effects")) { @@ -79,14 +77,10 @@ public void onChangeWorld(PlayerChangedWorldEvent event) { if(PhantomWorlds.instance().data.getConfig().contains(cfgPath + ".effects") && PhantomWorlds.instance().data.getConfig().isConfigurationSection(cfgPath + ".effects") && !event.getPlayer().hasPermission("phantomworlds.world.bypass.effects")) { - System.out.println("Apply effects."); - for(final String effName : PhantomWorlds.instance().data.getConfig().getConfigurationSection(cfgPath + ".effects").getKeys(false)) { final int duration = PhantomWorlds.instance().data.getConfig().getInt(cfgPath + ".effects." + effName + ".duration", -1); final int amplifier = PhantomWorlds.instance().data.getConfig().getInt(cfgPath + ".effects." + effName + ".amplifier", 1); - - System.out.println("Apply effect: " + effName); final PotionEffectType type = PotionEffectType.getByKey(NamespacedKey.fromString(effName)); if(type != null) { final PotionEffect effect = new PotionEffect(type, duration, amplifier);