mirror of https://github.com/taoneill/war.git
Fixes gh-410. Prevent /join in autoassign zones.
This commit is contained in:
parent
756ca37a82
commit
ebd95a4e16
|
@ -78,6 +78,8 @@ public class JoinCommand extends AbstractWarCommand {
|
|||
// join new team
|
||||
if (zone.getWarzoneConfig().getBoolean(WarzoneConfig.DISABLED)) {
|
||||
this.msg("This warzone is disabled.");
|
||||
} else if (zone.getWarzoneConfig().getBoolean(WarzoneConfig.AUTOASSIGN)) {
|
||||
this.msg("This warzone requires you to be automatically assigned to a team. Please enter the autoassign gate instead.");
|
||||
} else {
|
||||
List<Team> teams = zone.getTeams();
|
||||
boolean foundTeam = false;
|
||||
|
|
Loading…
Reference in New Issue