Added option for admins to modify arena while all protected
This commit is contained in:
parent
2e4927846f
commit
ad429166a8
@ -3,6 +3,6 @@
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
|
||||
<classpathentry kind="lib" path="C:/Users/Travja/Documents/Plugins/Vault.jar"/>
|
||||
<classpathentry kind="lib" path="C:/Users/Travja/Downloads/bukkit-1.4.2-R0.1-20121030.091619-10.jar"/>
|
||||
<classpathentry kind="lib" path="C:/Users/Travja/Downloads/craftbukkit-1.5.1-R0.1-20130321.220235-8.jar"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
bin/me/Travja/HungerArena/JoinAndQuitListener$6.class
Normal file
BIN
bin/me/Travja/HungerArena/JoinAndQuitListener$6.class
Normal file
Binary file not shown.
Binary file not shown.
@ -47,10 +47,10 @@ Countdown_Timer: 15
|
||||
Protected_Arena: 'true'
|
||||
|
||||
# Whether or not players (not playing) can break blocks while waiting
|
||||
Protected_Arena_Always: 'true'
|
||||
Protected_Arena_Always: 'false'
|
||||
|
||||
# Whether new or unknown players on HA-maps should be forced to the spawn or not.
|
||||
Force_Players_toSpawn: 'true'
|
||||
Force_Players_toSpawn: 'false'
|
||||
|
||||
# Whether or not players will be frozen when they are teleported to their positions
|
||||
Frozen_Teleport: 'true'
|
||||
|
@ -33,8 +33,10 @@ public class BlockStorage implements Listener {
|
||||
boolean protall = false;
|
||||
if (plugin.config.getString("Protected_Arena_Always").equalsIgnoreCase("True")) { /* Jeppa Fix/Add */
|
||||
protall = true;
|
||||
event.setCancelled(true);
|
||||
p.sendMessage("You can't break blocks, at all, if you feel this should change, talk to the server owner.");
|
||||
if(!p.hasPermission("HungerArena.arena") && plugin.getArena(p) != null){
|
||||
event.setCancelled(true);
|
||||
p.sendMessage("You can't break blocks, at all, if you feel this should change, talk to the server owner.");
|
||||
}
|
||||
}
|
||||
if (plugin.getArena(p) != null || !protall) {
|
||||
//int a = this.plugin.getArena(p).intValue();
|
||||
@ -155,7 +157,6 @@ public class BlockStorage implements Listener {
|
||||
int y = br.getY();
|
||||
int z = br.getZ();
|
||||
String coords = w + "," + x + "," + y + "," + z + "," + a;
|
||||
p.sendMessage(ChatColor.GREEN + "Sand/Gravel will land at " + coords);
|
||||
List<String> blocks = plugin.data.getStringList("Blocks_Placed");
|
||||
blocks.add(coords);
|
||||
plugin.data.set("Blocks_Placed", blocks);
|
||||
|
Loading…
Reference in New Issue
Block a user