From 0176ec3a3a42704f774ed21035b1d8bdc16492fd Mon Sep 17 00:00:00 2001 From: Paul Schulze Date: Wed, 20 Feb 2013 11:53:12 +0100 Subject: [PATCH] version 1.0.3 softdepend Multiverse-Core added (should resolve issue #7) removed a system.out.println fixed: now checks if border is null before trying to on|off --- CraftincBorderProtection.jar | Bin 16373 -> 16352 bytes pom.xml | 2 +- .../de/craftinc/borderprotection/Border.java | 2 -- .../craftinc/borderprotection/Commands.java | 21 +++++++++++++----- .../craftinc/borderprotection/Messages.java | 2 +- src/main/resources/plugin.yml | 1 + 6 files changed, 18 insertions(+), 10 deletions(-) diff --git a/CraftincBorderProtection.jar b/CraftincBorderProtection.jar index 18c6e5fe4c10f77d2b27a15ce30faaaf21104457..39ffcd54a4ebce3ee6933bb76431994279314d76 100644 GIT binary patch delta 7655 zcmZX31z42N*Y-*y=@JVINH5aT4T5wp-5?!HcgRY2E+H-5AR-_kAV_yNEFdLaf`q*4 z?|Xm$@Be+zbv@6S>zVtUIdjdKnKN@=!jW)1btP1^$ACW%hN)H(9s?G-sg~4m{TOV^*+*Yj2D$PO%mY3?&BrERCkN;1~pWWJo-MHXPby)m(R zkJf{qpEPyAGLY=;^~Z@S{B{PP52+yow+XjBq*p})kHfSP&oVZkB}G(0GBYbttjsUn zEWevu=fsadF|EVPWp;efk^`LKbxix$6iv?h@hS9VBI8Dn*Y=v8dxCs>3JBD@@`Ae) zDqOg;B){jj^YSgRWFX=iHJBMfd!egk6EC`4M8`HGw)kZ~&aVp@)E3IL-FCT{g4>J5 z@GL)6q*^-h+l2kV{PEmHbfvnKfRgxip2X-TmH!vmQ_drPis3W|X+4>JxR3aXxU54} zxZb!bhM#lDf=FP@EOcS9=+E+wh^{SxIq$;f32djLV z9t@OXnolY5e5Nq-x^^^`rp&jeXnz7D?@3y_6AiRlE)K4jFI?>3&0Q`@ZS>->1;(4L+u*4xcQ901HqJ{9B<%{L>;wHz$< zJ!Z}oW8Wl4r(z2Lj-4Iwa0R60jd5+ca|P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yAYDj@qzZn)a*0Z2iv4`Mu3sfeJw) zQCP?DyDKsOkP1m zZNu$x^`&C)3mJj|&FkEX(kD69tafE`6bx2(WTmBaD1GE4c7D9Zx2hU+_-HNeO76i5 zyjoH#3nn3dy&vP0kl9xJ`u(D#P#z5^YKa^&+11Q71!IZ&Ku~ z;_)sag*IxM*2psTif+L&c;C0owcT2s&R|mED8FQ2;FvtbcGK9cDCZORR~y$AiG?w# zYDxM_9-bW9f?>O&!!6u@1%ynN$J!6q$44UX$13w!RiEofb1ACH^Eg5AL?j@*cz~I^ z?yX)4#(Ew0HXX-9je`x`?9ruHiaWkf?)<3RCB5f!_%YcOvIDPSar`>lHiMMv2Wki0 z)vpcxh62ex8tD%VU8pj>nKIbkVi$z|cA|Dcb*~bN)gA0I(oT-2ak0 zIR9h#|3AU~r3MQsfx3#*K0d^e(f?-%|4j=3QJ4UL;9syu2@6uD{$rk7obk`EfF&pq zIH7bB^w1d=5@?+S)}PV+J9qd;9~QL3_NdMTO&2Hl18i6tCpJd{0EiwF4Yq%9kABSf z{`irWAff-WG5ntQzYFf)Ej+-(13Czb4de.craftinc CraftincBorderProtection jar - 1.0.2 + 1.0.3 UTF-8 diff --git a/src/main/java/de/craftinc/borderprotection/Border.java b/src/main/java/de/craftinc/borderprotection/Border.java index 58503a1..47f5485 100644 --- a/src/main/java/de/craftinc/borderprotection/Border.java +++ b/src/main/java/de/craftinc/borderprotection/Border.java @@ -122,8 +122,6 @@ public class Border implements ConfigurationSerializable map.put(rectPoint2Name, LocationSerializer.serializeLocation(rectPoint2)); map.put(isActiveKey, isActive); - System.out.println(map); - return map; } diff --git a/src/main/java/de/craftinc/borderprotection/Commands.java b/src/main/java/de/craftinc/borderprotection/Commands.java index 00bd629..2db04c2 100644 --- a/src/main/java/de/craftinc/borderprotection/Commands.java +++ b/src/main/java/de/craftinc/borderprotection/Commands.java @@ -128,12 +128,21 @@ public class Commands implements CommandExecutor if ( args.length == 1 && ( args[0].equalsIgnoreCase("on") || args[0].equalsIgnoreCase("off") ) ) { World world = ( (Player) sender ).getWorld(); - if (args[0].equalsIgnoreCase("on")) { - Border.getBorders().get(world).enable(); - sender.sendMessage(Messages.borderEnabled); - } else { - Border.getBorders().get(world).disable(); - sender.sendMessage(Messages.borderDisabled); + Border border = Border.getBorders().get(world); + + if (border != null) + { + if (args[0].equalsIgnoreCase("on")) { + border.enable(); + sender.sendMessage(Messages.borderEnabled); + } else { + border.disable(); + sender.sendMessage(Messages.borderDisabled); + } + } + else + { + sender.sendMessage(Messages.borderInfoNoBorderSet); } // save the new border diff --git a/src/main/java/de/craftinc/borderprotection/Messages.java b/src/main/java/de/craftinc/borderprotection/Messages.java index 84c7cd3..f63a069 100644 --- a/src/main/java/de/craftinc/borderprotection/Messages.java +++ b/src/main/java/de/craftinc/borderprotection/Messages.java @@ -92,7 +92,7 @@ public class Messages } public static String borderInfoNoBorderSet = - ChatColor.YELLOW + "No border here."; + ChatColor.YELLOW + "No border in this world."; public static String noPermissionSet = ChatColor.RED + "Sorry, you don't have permission to set the border."; diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index f2401a6..6adfe4f 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -17,6 +17,7 @@ name: Craft Inc. BorderProtection main: de.craftinc.borderprotection.Plugin version: ${project.version} +softdepend: [Multiverse-Core] authors: [ddidderr, mice_on_drugs] website: http://www.craftinc.de/plugins/borderprotection