From 48b735791fa2ef03e48dd4345797be67014f9735 Mon Sep 17 00:00:00 2001 From: Sn0wStorm Date: Tue, 31 May 2016 22:07:33 +0200 Subject: [PATCH] Fix All Dungeons being ended When triggering the End Sign with Redstone etc --- src/main/java/io/github/dre2n/dungeonsxl/sign/EndSign.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/github/dre2n/dungeonsxl/sign/EndSign.java b/src/main/java/io/github/dre2n/dungeonsxl/sign/EndSign.java index 9c21f976..990555ae 100644 --- a/src/main/java/io/github/dre2n/dungeonsxl/sign/EndSign.java +++ b/src/main/java/io/github/dre2n/dungeonsxl/sign/EndSign.java @@ -77,7 +77,7 @@ public class EndSign extends DSign { @Override public void onTrigger() { - for (DGamePlayer dPlayer : plugin.getDPlayers().getDGamePlayers()) { + for (DGamePlayer dPlayer : DGamePlayer.getByWorld(getGameWorld().getWorld())) { dPlayer.finish(); } }