Permalink
Browse files

Zonemakers can't circumvent commandwhitelist anymore. Only war.admin …

…perms lets you do that. Version v1.7.2-PREVEW.
  • Loading branch information...
1 parent 33117b9 commit ae190ed3155852e95fba1837dcf7388b8f803b87 @taoneill committed Apr 10, 2012
View
@@ -3,7 +3,7 @@
<groupId>com.tommytony</groupId>
<artifactId>war</artifactId>
- <version>1.7.1</version>
+ <version>1.7.2-PREVIEW</version>
<packaging>jar</packaging>
<name>War</name>
@@ -165,7 +165,7 @@ public void onPlayerCommandPreprocess(final PlayerCommandPreprocessEvent event)
if (talkingPlayerTeam != null) {
String msg = event.getMessage();
String[] split = msg.split(" ");
- if (!War.war.isZoneMaker(player) && split.length > 0 && split[0].startsWith("/")) {
+ if (!War.war.isWarAdmin(player) && split.length > 0 && split[0].startsWith("/")) {
String command = split[0].substring(1);
if (!command.equals("war") && !command.equals("zones") && !command.equals("warzones") && !command.equals("zone") && !command.equals("warzone") && !command.equals("teams") && !command.equals("join") && !command.equals("leave") && !command.equals("team") && !command.equals("warhub") && !command.equals("zonemaker")) {
// allow white commands
@@ -1,5 +1,5 @@
name: War
-version: 1.7.1 (Doolittle)
+version: 1.7.2-PREVIEW (Doolittle)
description: Lets you create TDM and CTF arenas (warzones) for a fast-paced and structured PVP experience.
author: tommytony
website: http://war.tommytony.com

0 comments on commit ae190ed

Please sign in to comment.