From 2e6771907060cb7f15cfeab4957bc526baea7614 Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Wed, 8 Jul 2020 14:00:11 -0500 Subject: [PATCH] Fix error message for not found systems. --- .../listeners/PlayerInteractListener.java | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/main/java/net/seanomik/energeticstorage/listeners/PlayerInteractListener.java b/src/main/java/net/seanomik/energeticstorage/listeners/PlayerInteractListener.java index 970989b..e91aeae 100644 --- a/src/main/java/net/seanomik/energeticstorage/listeners/PlayerInteractListener.java +++ b/src/main/java/net/seanomik/energeticstorage/listeners/PlayerInteractListener.java @@ -38,24 +38,9 @@ public class PlayerInteractListener implements Listener { player.sendMessage(Reference.PREFIX + ChatColor.RED + "You are not trusted to this system!"); } } else { - player.sendMessage(Reference.PREFIX + ChatColor.RED + "You are not trusted to this system!"); + player.sendMessage(Reference.PREFIX + ChatColor.RED + "This is an invalid ES System!"); } } -/* -// You probably do not need an atomic reference IntelliJ just recommended this to me. -AtomicReference lastIncrement = new AtomicReference<>((double) 0); -Bukkit.getScheduler().runTaskTimer(plugin, ()-> { - Location a = new Location(Bukkit.getWorld(""), 0,0,0,); - Location b = new Location(Bukkit.getWorld(""), 0,0,0,); - Vector d = b.subtract(a).toVector(); - - lastIncrement.updateAndGet(v -> (v + 0.1)); - Location line = a.add(d).multiply(lastIncrement.get()); - - // Spawns 1 heart particle - line.getWorld().spawnParticle(Particle.HEART, line, 1); -}, (long) 20, (long) 15); // 20 = delay, 15 = timer -*/ } } }