added permission in constructor

This commit is contained in:
weaondara 2013-03-31 12:36:21 +03:00
parent a316d6ccdc
commit d684f5de69

View File

@ -250,7 +250,7 @@ public final class UserConnection implements ProxiedPlayer
@Synchronized("permMutex")
public boolean hasPermission(String permission)
{
return bungee.getPluginManager().callEvent( new PermissionCheckEvent( this, permissions.contains( permission ) ) ).hasPermission();
return bungee.getPluginManager().callEvent( new PermissionCheckEvent( this, permission, permissions.contains( permission ) ) ).hasPermission();
}
@Override