Fix the "can't kick player with negativ power even if adminmode is on"

bug
This commit is contained in:
ulumulu1510 2015-02-22 12:04:55 +01:00 committed by Olof Larsson
parent 22bf4bc9bb
commit 1dab81ede3

View File

@ -57,7 +57,7 @@ public class CmdFactionsKick extends FactionsCommand
return; return;
} }
if ( ! MConf.get().canLeaveWithNegativePower && mplayer.getPower() < 0) if ( ! MConf.get().canLeaveWithNegativePower && mplayer.getPower() < 0 && ! msender.isUsingAdminMode())
{ {
msg("<b>You cannot kick that member until their power is positive."); msg("<b>You cannot kick that member until their power is positive.");
return; return;