C# Class fCraft.PlayerOpException

Exception that is thrown when a player's action or command could not be completed.
Inheritance: System.Exception
Show file Open project: GlennMR/800craft Class Usage Examples

Public Methods

Method Description
PlayerOpException ( [ player, PlayerInfo target, PlayerOpExceptionCode errorCode, [ message, [ messageColored ) : System

Private Methods

Method Description
CheckBanReason ( [ reason, [ player, PlayerInfo targetInfo, bool unban ) : void
CheckKickReason ( [ reason, [ player, PlayerInfo targetInfo ) : void
CheckRankChangeReason ( [ reason, [ player, PlayerInfo targetInfo, bool promoting ) : void
ThrowCancelled ( [ player, [ target ) : void
ThrowCannotTargetSelf ( [ player, [ target, [ action ) : void
ThrowInvalidIP ( [ player, [ target, [ ip ) : void
ThrowNoOneToBan ( [ player, [ targetInfo, [ address ) : void
ThrowNoOneToUnban ( [ player, [ targetInfo, [ address ) : void
ThrowNoWorld ( [ player ) : void
ThrowPermissionLimit ( [ player, [ targetInfo, [ action, Permission permission ) : void
ThrowPermissionLimitIP ( [ player, [ infoWhomPlayerCantBan, [ targetAddress ) : void
ThrowPermissionMissing ( [ player, [ target, [ action ) : void
ThrowPlayerAlreadyBanned ( [ player, [ target, [ action ) : void
ThrowPlayerAndIPNotBanned ( [ player, [ targetInfo, [ address ) : void
ThrowPlayerNotBanned ( [ player, [ target, [ action ) : void

Method Details

PlayerOpException() public method

public PlayerOpException ( [ player, PlayerInfo target, PlayerOpExceptionCode errorCode, [ message, [ messageColored ) : System
player [
target PlayerInfo
errorCode PlayerOpExceptionCode
message [
messageColored [
return System