mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Added ban, unban, kick usage information and invocation aliases
This commit is contained in:
parent
3bc57b4087
commit
c55a66d5ba
@ -37,6 +37,7 @@ impl ChatCommandData {
|
||||
pub enum ChatCommand {
|
||||
Adminify,
|
||||
Alias,
|
||||
Ban,
|
||||
Build,
|
||||
Campfire,
|
||||
Debug,
|
||||
@ -52,6 +53,7 @@ pub enum ChatCommand {
|
||||
Help,
|
||||
JoinFaction,
|
||||
Jump,
|
||||
Kick,
|
||||
Kill,
|
||||
KillNpcs,
|
||||
Lantern,
|
||||
@ -70,6 +72,7 @@ pub enum ChatCommand {
|
||||
Tell,
|
||||
Time,
|
||||
Tp,
|
||||
Unban,
|
||||
Version,
|
||||
Waypoint,
|
||||
Whitelist,
|
||||
@ -80,6 +83,7 @@ pub enum ChatCommand {
|
||||
pub static CHAT_COMMANDS: &[ChatCommand] = &[
|
||||
ChatCommand::Adminify,
|
||||
ChatCommand::Alias,
|
||||
ChatCommand::Ban,
|
||||
ChatCommand::Build,
|
||||
ChatCommand::Campfire,
|
||||
ChatCommand::Debug,
|
||||
@ -95,6 +99,7 @@ pub static CHAT_COMMANDS: &[ChatCommand] = &[
|
||||
ChatCommand::Help,
|
||||
ChatCommand::JoinFaction,
|
||||
ChatCommand::Jump,
|
||||
ChatCommand::Kick,
|
||||
ChatCommand::Kill,
|
||||
ChatCommand::KillNpcs,
|
||||
ChatCommand::Lantern,
|
||||
@ -113,6 +118,7 @@ pub static CHAT_COMMANDS: &[ChatCommand] = &[
|
||||
ChatCommand::Tell,
|
||||
ChatCommand::Time,
|
||||
ChatCommand::Tp,
|
||||
ChatCommand::Unban,
|
||||
ChatCommand::Version,
|
||||
ChatCommand::Waypoint,
|
||||
ChatCommand::Whitelist,
|
||||
@ -193,6 +199,11 @@ impl ChatCommand {
|
||||
Admin,
|
||||
),
|
||||
ChatCommand::Alias => cmd(vec![Any("name", Required)], "Change your alias", NoAdmin),
|
||||
ChatCommand::Ban => cmd(
|
||||
vec![Any("username", Required), Any("reason", Optional)],
|
||||
"Ban a player with a given username",
|
||||
Admin
|
||||
),
|
||||
ChatCommand::Build => cmd(vec![], "Toggles build mode on and off", Admin),
|
||||
ChatCommand::Campfire => cmd(vec![], "Spawns a campfire", Admin),
|
||||
ChatCommand::Debug => cmd(vec![], "Place all debug items into your pack.", Admin),
|
||||
@ -263,6 +274,11 @@ impl ChatCommand {
|
||||
"Offset your current position",
|
||||
Admin,
|
||||
),
|
||||
ChatCommand::Kick => cmd(
|
||||
vec![Any("username", Required), Any("reason", Optional)],
|
||||
"Kick a player with a given username",
|
||||
Admin
|
||||
),
|
||||
ChatCommand::Kill => cmd(vec![], "Kill yourself", NoAdmin),
|
||||
ChatCommand::KillNpcs => cmd(vec![], "Kill the NPCs", Admin),
|
||||
ChatCommand::Lantern => cmd(
|
||||
@ -357,6 +373,11 @@ impl ChatCommand {
|
||||
"Teleport to another player",
|
||||
Admin,
|
||||
),
|
||||
ChatCommand::Unban => cmd (
|
||||
vec![Any("username", Required)],
|
||||
"Remove the ban for the given username",
|
||||
Admin
|
||||
),
|
||||
ChatCommand::Version => cmd(vec![], "Prints server version", NoAdmin),
|
||||
ChatCommand::Waypoint => {
|
||||
cmd(vec![], "Set your waypoint to your current position", Admin)
|
||||
@ -379,6 +400,7 @@ impl ChatCommand {
|
||||
match self {
|
||||
ChatCommand::Adminify => "adminify",
|
||||
ChatCommand::Alias => "alias",
|
||||
ChatCommand::Ban => "ban",
|
||||
ChatCommand::Build => "build",
|
||||
ChatCommand::Campfire => "campfire",
|
||||
ChatCommand::Debug => "debug",
|
||||
@ -394,6 +416,7 @@ impl ChatCommand {
|
||||
ChatCommand::JoinFaction => "join_faction",
|
||||
ChatCommand::Help => "help",
|
||||
ChatCommand::Jump => "jump",
|
||||
ChatCommand::Kick => "kick",
|
||||
ChatCommand::Kill => "kill",
|
||||
ChatCommand::KillNpcs => "kill_npcs",
|
||||
ChatCommand::Lantern => "lantern",
|
||||
@ -412,6 +435,7 @@ impl ChatCommand {
|
||||
ChatCommand::Tell => "tell",
|
||||
ChatCommand::Time => "time",
|
||||
ChatCommand::Tp => "tp",
|
||||
ChatCommand::Unban => "unban",
|
||||
ChatCommand::Version => "version",
|
||||
ChatCommand::Waypoint => "waypoint",
|
||||
ChatCommand::Whitelist => "whitelist",
|
||||
|
Loading…
Reference in New Issue
Block a user