Fixed max team size permission not working

Fixes #114.
This commit is contained in:
Florian CUNY 2018-12-09 14:52:38 +01:00
parent 76af2335e2
commit 3ef784b14b

View File

@ -147,11 +147,10 @@ public class IslandTeamInviteCommand extends CompositeCommand {
/**
* Gets the maximum team size for this player in this game based on the permission or the world's setting
* @param user - user
* @param user user
* @return max team size of user
*/
public int getMaxTeamSize(User user) {
return user.getPermissionValue(getPermissionPrefix() + "team.maxsize.", getIWM().getMaxTeamSize(getWorld()));
return user.getPermissionValue(getPermissionPrefix() + "team.maxsize", getIWM().getMaxTeamSize(getWorld()));
}
}