Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
7c9db30b
Commit
7c9db30b
authored
Jun 13, 2022
by
Tesutarin
Committed by
Melledy
Jun 14, 2022
Browse files
KickCommand: Remove unnecessary subpermission
parent
6e955c9f
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/command/commands/KickCommand.java
View file @
7c9db30b
...
@@ -8,7 +8,7 @@ import java.util.List;
...
@@ -8,7 +8,7 @@ import java.util.List;
import
static
emu
.
grasscutter
.
utils
.
Language
.
translate
;
import
static
emu
.
grasscutter
.
utils
.
Language
.
translate
;
@Command
(
label
=
"kick"
,
usage
=
"kick"
,
permission
=
"server.kick"
,
permissionTargeted
=
"server.kick.others"
,
description
=
"commands.kick.description"
)
@Command
(
label
=
"kick"
,
usage
=
"kick"
,
permission
=
"server.kick"
,
description
=
"commands.kick.description"
)
public
final
class
KickCommand
implements
CommandHandler
{
public
final
class
KickCommand
implements
CommandHandler
{
@Override
@Override
...
...
src/main/resources/languages/en-US.json
View file @
7c9db30b
...
@@ -140,6 +140,11 @@
...
@@ -140,6 +140,11 @@
"success"
:
"Summoned %s to %s's world."
,
"success"
:
"Summoned %s to %s's world."
,
"description"
:
"Forces someone to join the world of others. If no one is targeted, it sends you into co-op mode anyway."
"description"
:
"Forces someone to join the world of others. If no one is targeted, it sends you into co-op mode anyway."
},
},
"drop"
:
{
"command_usage"
:
"Usage: drop <itemID|itemName> [amount]"
,
"success"
:
"Dropped %s of %s."
,
"description"
:
"Drops an item near you"
},
"enter_dungeon"
:
{
"enter_dungeon"
:
{
"usage"
:
"Usage: enterdungeon <dungeonID>"
,
"usage"
:
"Usage: enterdungeon <dungeonID>"
,
"changed"
:
"Changed to dungeon %s."
,
"changed"
:
"Changed to dungeon %s."
,
...
@@ -181,19 +186,16 @@
...
@@ -181,19 +186,16 @@
"success"
:
"Godmode is now %s for %s."
,
"success"
:
"Godmode is now %s for %s."
,
"description"
:
"Prevents you from taking damage. Defaults to toggle."
"description"
:
"Prevents you from taking damage. Defaults to toggle."
},
},
"nostamina"
:
{
"success"
:
"NoStamina is now %s for %s."
,
"description"
:
"Keep your endurance to the maximum."
},
"unlimitenergy"
:
{
"success"
:
"UnlimitEnergy is now %s for %s."
,
"config_error"
:
"Command is disabled, because energyUsage is false in config.json."
,
"description"
:
"Use the element does not waste energy"
},
"heal"
:
{
"heal"
:
{
"success"
:
"All characters have been healed."
,
"success"
:
"All characters have been healed."
,
"description"
:
"Heal all characters in your current team."
"description"
:
"Heal all characters in your current team."
},
},
"help"
:
{
"usage"
:
"Usage: "
,
"aliases"
:
"Aliases: "
,
"available_commands"
:
"Available commands: "
,
"description"
:
"Sends the help message or shows information about a specified command"
},
"kick"
:
{
"kick"
:
{
"player_kick_player"
:
"Player [%s:%s] has kicked player [%s:%s]"
,
"player_kick_player"
:
"Player [%s:%s] has kicked player [%s:%s]"
,
"server_kick_player"
:
"Kicking player [%s:%s]..."
,
"server_kick_player"
:
"Kicking player [%s:%s]..."
,
...
@@ -220,6 +222,10 @@
...
@@ -220,6 +222,10 @@
"success"
:
"There are %s player(s) online:"
,
"success"
:
"There are %s player(s) online:"
,
"description"
:
"List online players"
"description"
:
"List online players"
},
},
"nostamina"
:
{
"success"
:
"NoStamina is now %s for %s."
,
"description"
:
"Keep your endurance to the maximum."
},
"permission"
:
{
"permission"
:
{
"usage"
:
"Usage: permission <add|remove> <username> <permission>"
,
"usage"
:
"Usage: permission <add|remove> <username> <permission>"
,
"add"
:
"Permission added."
,
"add"
:
"Permission added."
,
...
@@ -256,6 +262,9 @@
...
@@ -256,6 +262,9 @@
"success"
:
"Reset complete."
,
"success"
:
"Reset complete."
,
"description"
:
"Reset target player's shop refresh time"
"description"
:
"Reset target player's shop refresh time"
},
},
"restart"
:
{
"description"
:
"Restarts the current session"
},
"sendMail"
:
{
"sendMail"
:
{
"usage"
:
"Usage: sendmail <userID|all|help> [templateID]"
,
"usage"
:
"Usage: sendmail <userID|all|help> [templateID]"
,
"user_not_exist"
:
"The user with an ID of '%s' does not exist."
,
"user_not_exist"
:
"The user with an ID of '%s' does not exist."
,
...
@@ -368,29 +377,20 @@
...
@@ -368,29 +377,20 @@
"success"
:
"Teleported %s to %s, %s, %s in scene %s."
,
"success"
:
"Teleported %s to %s, %s, %s in scene %s."
,
"description"
:
"Change the player's position"
"description"
:
"Change the player's position"
},
},
"unlimitenergy"
:
{
"success"
:
"UnlimitEnergy is now %s for %s."
,
"config_error"
:
"Command is disabled, because energyUsage is false in config.json."
,
"description"
:
"Use the element does not waste energy"
},
"unlocktower"
:
{
"success"
:
"Abyss Corridor's Floors are all unlocked now."
,
"description"
:
"Unlock all levels of tower"
},
"weather"
:
{
"weather"
:
{
"usage"
:
"Usage: weather <climate type(weatherId)> <weather type(climateId)>
\n
Weather types 0: None, 1: Sunny, 2: Cloudy, 3: Rain, 4: Thunderstorm, 5: Snow, 6: Mist"
,
"usage"
:
"Usage: weather <climate type(weatherId)> <weather type(climateId)>
\n
Weather types 0: None, 1: Sunny, 2: Cloudy, 3: Rain, 4: Thunderstorm, 5: Snow, 6: Mist"
,
"success"
:
"Changed climate type to %s with weather type %s."
,
"success"
:
"Changed climate type to %s with weather type %s."
,
"invalid_id"
:
"Invalid ID."
,
"invalid_id"
:
"Invalid ID."
,
"description"
:
"Changes the weather"
"description"
:
"Changes the weather"
},
"drop"
:
{
"command_usage"
:
"Usage: drop <itemID|itemName> [amount]"
,
"success"
:
"Dropped %s of %s."
,
"description"
:
"Drops an item near you"
},
"help"
:
{
"usage"
:
"Usage: "
,
"aliases"
:
"Aliases: "
,
"available_commands"
:
"Available commands: "
,
"description"
:
"Sends the help message or shows information about a specified command"
},
"restart"
:
{
"description"
:
"Restarts the current session"
},
"unlocktower"
:
{
"success"
:
"Unlock done."
,
"description"
:
"Unlock Abyss Corridor's Floors"
}
}
},
},
"gacha"
:
{
"gacha"
:
{
...
...
src/main/resources/languages/zh-CN.json
View file @
7c9db30b
...
@@ -140,6 +140,11 @@
...
@@ -140,6 +140,11 @@
"success"
:
"已强制传送 %s 到 %s 的世界。"
,
"success"
:
"已强制传送 %s 到 %s 的世界。"
,
"description"
:
"强制传送指定玩家到他人的世界。如果没有指定玩家,则会使你进入多人游戏状态"
"description"
:
"强制传送指定玩家到他人的世界。如果没有指定玩家,则会使你进入多人游戏状态"
},
},
"drop"
:
{
"command_usage"
:
"用法:drop <物品ID|物品名称> [数量]"
,
"success"
:
"已丢下 %s 个 %s。"
,
"description"
:
"在你附近丢下物品"
},
"enter_dungeon"
:
{
"enter_dungeon"
:
{
"usage"
:
"用法:enterdungeon <秘境ID>"
,
"usage"
:
"用法:enterdungeon <秘境ID>"
,
"changed"
:
"已进入秘境 %s。"
,
"changed"
:
"已进入秘境 %s。"
,
...
@@ -181,19 +186,16 @@
...
@@ -181,19 +186,16 @@
"success"
:
"Godmode 已设为 %s。[用户:%s]"
,
"success"
:
"Godmode 已设为 %s。[用户:%s]"
,
"description"
:
"防止你受到伤害"
"description"
:
"防止你受到伤害"
},
},
"nostamina"
:
{
"success"
:
"NoStamina 已设为 %s。[用户:%s]"
,
"description"
:
"保持你的体力处于最高状态"
},
"unlimitenergy"
:
{
"success"
:
"UnlimitEnergy 已设为 %s。[用户:%s]"
,
"config_error"
:
"命令不可用。因为 config.json 中 energyUsage 为 false。"
,
"description"
:
"使用元素爆发而不消耗能量"
},
"heal"
:
{
"heal"
:
{
"success"
:
"已治疗所有角色。"
,
"success"
:
"已治疗所有角色。"
,
"description"
:
"治疗当前队伍的角色"
"description"
:
"治疗当前队伍的角色"
},
},
"help"
:
{
"usage"
:
"用法:"
,
"aliases"
:
"别名:"
,
"available_commands"
:
"可用命令:"
,
"description"
:
"发送帮助信息或显示指定命令的信息"
},
"kick"
:
{
"kick"
:
{
"player_kick_player"
:
"玩家 [%s:%s] 已将 [%s:%s] 踢出。"
,
"player_kick_player"
:
"玩家 [%s:%s] 已将 [%s:%s] 踢出。"
,
"server_kick_player"
:
"正在踢出玩家 [%s:%s]..."
,
"server_kick_player"
:
"正在踢出玩家 [%s:%s]..."
,
...
@@ -220,6 +222,10 @@
...
@@ -220,6 +222,10 @@
"success"
:
"目前在线人数:%s"
,
"success"
:
"目前在线人数:%s"
,
"description"
:
"查看所有玩家"
"description"
:
"查看所有玩家"
},
},
"nostamina"
:
{
"success"
:
"NoStamina 已设为 %s。[用户:%s]"
,
"description"
:
"保持你的体力处于最高状态"
},
"permission"
:
{
"permission"
:
{
"usage"
:
"用法:permission <add|remove> <用户名> <权限>"
,
"usage"
:
"用法:permission <add|remove> <用户名> <权限>"
,
"add"
:
"权限已添加。"
,
"add"
:
"权限已添加。"
,
...
@@ -256,6 +262,9 @@
...
@@ -256,6 +262,9 @@
"success"
:
"重置完成。"
,
"success"
:
"重置完成。"
,
"description"
:
"重置指定玩家的商店刷新时间"
"description"
:
"重置指定玩家的商店刷新时间"
},
},
"restart"
:
{
"description"
:
"重新启动服务器"
},
"sendMail"
:
{
"sendMail"
:
{
"usage"
:
"用法:sendmail <用户ID|all|help> [模板ID]"
,
"usage"
:
"用法:sendmail <用户ID|all|help> [模板ID]"
,
"user_not_exist"
:
"用户 '%s' 不存在。"
,
"user_not_exist"
:
"用户 '%s' 不存在。"
,
...
@@ -368,29 +377,20 @@
...
@@ -368,29 +377,20 @@
"success"
:
"传送 %s 到坐标 %s, %s, %s,场景为 %s。"
,
"success"
:
"传送 %s 到坐标 %s, %s, %s,场景为 %s。"
,
"description"
:
"改变指定玩家的位置"
"description"
:
"改变指定玩家的位置"
},
},
"unlimitenergy"
:
{
"success"
:
"UnlimitEnergy 已设为 %s。[用户:%s]"
,
"config_error"
:
"命令不可用。因为 config.json 中 energyUsage 为 false。"
,
"description"
:
"使用元素爆发而不消耗能量"
},
"unlocktower"
:
{
"success"
:
"现已解锁深境回廊(1-8层)。"
,
"description"
:
"解锁深境螺旋"
},
"weather"
:
{
"weather"
:
{
"usage"
:
"用法:weather <气候类型(天气ID)> <天气类型(气候ID)>
\n
天气类型 0: 无, 1: 晴天, 2: 多云, 3: 雨, 4: 雷雨, 5: 雪, 6: 雾"
,
"usage"
:
"用法:weather <气候类型(天气ID)> <天气类型(气候ID)>
\n
天气类型 0: 无, 1: 晴天, 2: 多云, 3: 雨, 4: 雷雨, 5: 雪, 6: 雾"
,
"success"
:
"已更改气候类型为 %s,天气类型为 %s。"
,
"success"
:
"已更改气候类型为 %s,天气类型为 %s。"
,
"invalid_id"
:
"无效的ID。"
,
"invalid_id"
:
"无效的ID。"
,
"description"
:
"更改天气"
"description"
:
"更改天气"
},
"drop"
:
{
"command_usage"
:
"用法:drop <物品ID|物品名称> [数量]"
,
"success"
:
"已丢下 %s 个 %s。"
,
"description"
:
"在你附近丢下物品"
},
"help"
:
{
"usage"
:
"用法:"
,
"aliases"
:
"别名:"
,
"available_commands"
:
"可用命令:"
,
"description"
:
"发送帮助信息或显示指定命令的信息"
},
"restart"
:
{
"description"
:
"重新启动服务器"
},
"unlocktower"
:
{
"success"
:
"解锁完成。"
,
"description"
:
"解锁深境回廊(1-8层)"
}
}
},
},
"gacha"
:
{
"gacha"
:
{
...
...
src/main/resources/languages/zh-TW.json
View file @
7c9db30b
...
@@ -389,8 +389,8 @@
...
@@ -389,8 +389,8 @@
"description"
:
"重新啟動伺服器。"
"description"
:
"重新啟動伺服器。"
},
},
"unlocktower"
:
{
"unlocktower"
:
{
"success"
:
"
解鎖完成
。"
,
"success"
:
"
現已解鎖深境迴廊
。"
,
"description"
:
"解鎖深境
迴廊
。"
"description"
:
"解鎖深境
螺旋
。"
}
}
},
},
"gacha"
:
{
"gacha"
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment