Jump to content

/BanIP: Difference between revisions

From fCraft Wiki
D3M0N (talk | contribs)
No edit summary
mNo edit summary
 
(15 intermediate revisions by 5 users not shown)
Line 1: Line 1:
[[Category:Commands]]{{LastUpdated|400}}
{{CommandBox
|name=BanIP
|purpose=Bans an IP address.
|aliases=
|uses=/BanIP PlayerName [Reason]


==Command==
/BanIP IPAddress [Reason]
==<code>/Banip <PlayerName|IP Address> [Reason]</code>==
|cat=Moderation
:Bans a Players Name and IP. If player is not online, last known IP associated with the name is used. You can also type in the IP address directly. Any text after the player name will be saved as the [reason]. Ban information can be viewed with [http://fcraft.net/wiki/Baninfo /baninfo]
|perm={{rperm|Ban}}, {{rperm|BanIP}}
|console=Yes
|v=0.100
|}}
Bans an IP address, preventing anyone who tries connecting from that address from joining. When banning by PlayerName, the account is also banned. If any players are online from that IP address, they are immediately kicked.  


==<code>/BanIP <PlayerName> [Reason]</code>==
:Bans an IP address that was last used by the given player. Bans player's name also. If a <code>reason</code> is given, it is displayed to the banned player, saved on player's record (can be viewed via {{cmd|BanInfo}}), and may be announced publicly.


* Can be used from console.
==<code>/BanIP <IPAddress> [Reason]</code>==
:Same as above, but the IP address is typed in directly. Does not ban any associated player accounts (see [[/BanAll]] for that).
 
==Customizing /BanIP behavior==
*Ability to ban can be limited per-rank. By default, players with [[Ban]] permission may only ban players of their own rank or lower.
*If [[List_of_config_keys#Security|RequireBanReason]] setting is enabled (default: false), players are required to provide a reason.
*If [[List_of_config_keys#Security|AnnounceKickAndBanReasons]] setting is enabled (default: true), ban reasons are announced in global chat.
 
==Related commands==
*{{cmd|Ban}} - Bans a player by name.
*{{cmd|BanAll}} - Bans an IP, and all accounts on it.
*{{cmd|BanInfo}} - Shows a player's ban record.
*{{cmd|BanEx}} - Excludes a player from being banned, even if their IP is banned.
 
{{LastUpdated|1650}}

Latest revision as of 04:27, 22 August 2012

Command
BanIP

Bans an IP address.

Usage

/BanIP PlayerName [Reason]

/BanIP IPAddress [Reason]

CategoryModeration
Required permissionsBan, BanIP
Usable from console?Yes
Introduced infCraft 0.100

Bans an IP address, preventing anyone who tries connecting from that address from joining. When banning by PlayerName, the account is also banned. If any players are online from that IP address, they are immediately kicked.

/BanIP <PlayerName> [Reason]

Bans an IP address that was last used by the given player. Bans player's name also. If a reason is given, it is displayed to the banned player, saved on player's record (can be viewed via /BanInfo), and may be announced publicly.

/BanIP <IPAddress> [Reason]

Same as above, but the IP address is typed in directly. Does not ban any associated player accounts (see /BanAll for that).

Customizing /BanIP behavior

  • Ability to ban can be limited per-rank. By default, players with Ban permission may only ban players of their own rank or lower.
  • If RequireBanReason setting is enabled (default: false), players are required to provide a reason.
  • If AnnounceKickAndBanReasons setting is enabled (default: true), ban reasons are announced in global chat.
  • /Ban - Bans a player by name.
  • /BanAll - Bans an IP, and all accounts on it.
  • /BanInfo - Shows a player's ban record.
  • /BanEx - Excludes a player from being banned, even if their IP is banned.