mirror of
https://github.com/taoneill/war.git
synced 2024-11-26 20:26:29 +01:00
Zonemakers can't circumvent commandwhitelist anymore. Only war.admin perms lets you do that. Version v1.7.2-PREVEW.
This commit is contained in:
parent
33117b9db0
commit
ae190ed315
@ -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 class WarPlayerListener implements Listener {
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user