欢迎加入!

注册后,您将能够与我们社区的其他成员进行讨论、分享和私信。

无论您是想寻求帮助、分享经验,还是结识志同道合的朋友,我们都期待您的参与!一起探索更多精彩内容吧。

立即注册! 加入群聊
  • 所有的免费插件都是同步外网更新,所有都是最新版!
Discord 命令

同步更新 Discord 命令 同步更新

没有下载权限
购买会员

特征​

  • 允许有权限的玩家使用 discord 运行服务器控制台命令

Discord 链接​

此插件支持 Discord Extension 提供的 Discord Link。

权限​

此插件使用权限系统。要分配权限,请使用 。要删除权限,请使用 。oxide.grant <user or group> <name or steam id> <permission>oxide.revoke <user or group> <name or steam id> <permission>
discordcommands.use- 允许玩家使用 /exec discord 机器人命令

Discord 命令​

  • /exec {command}-- 将在服务器上
    执行给定的命令 示例:
    注意
    命令可以在 oxide/lang/DiscordCommands.json 中配置/exec o.reload DiscordCore

获取您的 Bot Token​

单击此处了解如何获取 Discord Bot Token

配置​

设置和选项可以在目录下的文件中进行配置。建议使用编辑器和验证器,以避免格式问题和语法错误。DiscordCommandsconfig
{
"Discord Bot Token": "",
"Discord Server ID (Optional if bot only in 1 guild)": "",
"Command Settings": {
"Allow Discord Commands In Direct Messages": true,
"Allow Discord Commands In Guild": false,
"Allow Guild Commands Only In The Following Guild Channel Or Category (Channel ID Or Category ID)": [],
"Allow Commands for members having role (Role ID)": [],
"Restrictions": {
"Enable Command Restrictions": false,
"Blacklist = listed commands cannot be used without permission, Whitelist = Cannot use any commands unless listed and have permission": "Blacklist",
"Command Restrictions": {
"command": {
"Allowed Discord Roles": [
"1234512321"
],
"Allowed Server Groups": [
"admin"
]
}
}
}
},
"Log Settings": {
"Log command usage in server console": true,
"Command Usage Logging Channel ID": "",
"Display Server Log Messages to user after running command": true,
"Display Server Log Messages Duration (Seconds)": 1.0
},
"Discord Extension Log Level (Verbose, Debug, Info, Warning, Error, Exception, Off)": "Info"
}

地方化​

默认消息位于目录下的文件中。要添加对其他语言的支持,请创建一个新的语言文件夹(例如 对于德语),请将默认语言文件复制到新文件夹,然后自定义消息。DiscordCommandslang/ende
{
"NoPermission": "You do not have permission to use this command",
"Blacklisted": "This command is blacklisted and you do not have permission to use it.",
"WhiteListedNotAdded": "This command is not added to the command whitelist and cannot be used.",
"WhiteListedNoPermission": "You do not have the whitelisted permission to use this command.",
"CommandInfoText": "To execute a command on the server",
"RanCommand": "Ran Command: {0}",
"ExecCommand": "exec",
"CommandLogging": "{0} ran command '{1}'",
"CommandHelpTextV2": "Send commands to the rust server:\nType /{0} {{command}} - to execute that command on the server\nExample: /{0} o.reload DiscordCommand"
}
作者
xiaoguan
下载
0
查看
12
首次发布
最后更新

评分

0.00 星 0 星

来自xiaoguan的更多资源

后退
顶部