Fixes gh-410. Prevent /join in autoassign zones.

This commit is contained in:
cmastudios 2013-07-13 16:32:21 -05:00
parent 756ca37a82
commit ebd95a4e16
1 changed files with 2 additions and 0 deletions

View File

@ -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;