[This is preliminary documentation and is subject to change.]

Adds a new IP Ban.

Namespace: fCraft
Assembly: fCraft (in fCraft.dll) Version: 0.6.3.1 (0.6.3.1)

Syntax

   
 C# 
public static bool Add(
	IPBanInfo ban,
	bool raiseEvent
)

Parameters

ban
IPBanInfo
Ban information
raiseEvent
Boolean
Whether AddingIPBan and AddedIPBan events should be raised.

Return Value

True if ban was added, false if it was already on the list

See Also