概述
由你决定代理服务器上需要什么!
- 只需添加配置即可添加自定义命令。
- 移除配置即可删除未使用的命令。
- 使用多个目录和文件来组织配置!
- 创建你自己的代理命令。
- 创建多个管理聊天和玩家聊天。
- 创建图形用户界面 (GUI)。
- 负载均衡。
- 实用工具命令。
- 全局消息传递。
- 全局会话历史。
- 以及更多!
命令
- 此插件增加了创建玩家可以在你的网络中使用的自定义代理命令的功能。
- 在配置文件中创建命令时,你可以从多种具有不同功能的类型中进行选择。
- 你可以删除配置文件中的任何命令,它将从服务器中移除。
- 只要标识符不同,你就可以拥有多个相同类型的命令。
- reload 命令允许你重新加载所有命令,无需重启服务器。
命令示例
# 命令的标识符。
info:
# 命令的类型。
type: "info"
# 命令是否启用。
enabled: true
# 命令名称。
# 在此实例中,它将允许你执行 /leaf。
name: "leaf"
# 玩家运行命令时发送的消息。
message:
- "&8&m&l-------&r &a&lLeaf &8&m&l-------"
- "&7"
- "&7Velocity 代理插件"
- "&7版本 &f<version>"
- "&7作者 &fSmudge"
- "&7"
- "&8&m&l--------------------"
| 命令类型 |
用法 |
描述 |
| message |
[name] [player] [message] |
用于向玩家发送消息。 |
| reply |
/[name] [message] |
用于回复最后一条消息。 |
| ignore |
/[name] [player] |
用于屏蔽某玩家。 |
| unignore |
/[name] [player] |
用于取消屏蔽某玩家。 |
| ignorelist |
/[name] |
用于列出被屏蔽的玩家。 |
| togglemessages |
/[name] |
用于切换你的消息接收状态。 |
| togglespy |
/[name] |
用于切换查看其他玩家消息的状态。 |
| messagehistory |
/[name] [query] |
类似于 core protect,允许你查看玩家的消息历史记录。 |
| alert |
/[name] [message] |
用于向服务器上的所有人发送消息。 |
| alertraw |
/[name] [json] |
用于向服务器上的所有人发送 JSON 消息。类似于 /tellraw。 |
| chat |
/[name] [message] |
用于向聊天频道发送消息。 |
| find |
/[name] [player] |
用于获取在线玩家的信息。 |
| history |
/[name] [player] |
用于从数据库中获取玩家的全球会话历史记录。 |
| info |
/[name] |
向玩家显示一条消息。 |
| inventory |
/[name] |
向玩家显示一个物品栏。 |
| join |
/[name] |
将玩家发送到某个服务器。 |
| list |
/[name] |
显示在线玩家列表。这可以是管理列表。 |
| reload |
/[name] |
重新加载整个插件。包括配置、命令、事件、占位符和变量。 |
| report |
/[name] |
向一组玩家发送消息。通常用于向管理人员报告错误。类似于 /helpop。 |
| send |
/[name] [from] [to] |
将一组玩家发送到某个服务器。 |
| servers |
/[name] |
显示在线服务器列表及在线玩家数量。 |
| teleport |
/[name] [player] |
传送至玩家所在的服务器。 |
| variable |
/[name] [value] |
设置变量的值。你可以为玩家提供可选选项。 |
以及更多!所有命令类型均在维基中列出。如果你有任何建议,欢迎在 GitHub issues 页面创建功能请求或直接通过 Discord 联系我。
事件
你可以创建自定义事件。
目前仅有一个选项用于处理玩家加入代理的情况。
这允许你进行负载均衡,并将玩家发送到玩家数量最少的服务器。
load_balancing:
# 事件的类型。
type: "playerjoin"
# 用于启用和禁用事件。
# 默认为 true。
enabled: false
# 添加要执行的命令。
commands:
- "leaf"
# 添加要发送到的服务器。
# 如果指定了多个服务器,玩家将被
# 发送至玩家数量最少的服务器。
servers:
- "hub1"
- "hub2"
占位符
你可以创建自己的条件占位符,以便在插件的其他地方使用。
vanish_colour:
condition: "MATCH:<vanished>"
options:
true: "&#c0fce6"
false: "&#ffffee"
变量
当数据库启用时,你可以使用变量来存储每个玩家的数据。
在配置文件中创建了一个变量后,你可以为玩家创建一个命令来设置该变量。这使得你能够在其他命令和物品栏中将变量作为占位符使用。
示例
# 变量的标识符。
# 例如:<theme> 将返回为该玩家设置的字符串数据。
theme:
# 如果未设置变量时的默认值。
default: "green"
Overview
You get to decide what you want on your proxy!
- Simply add configuration to add your own custom commands.
- And remove configuration to remove un-used commands.
- Organise the configuration with multiple directories and files!
- Create your own proxy commands.
- Create multiple staff chats and player chats.
- Create GUI's.
- Load balancing.
- Utility commands.
- Global messaging.
- Global session history.
- and more!
Commands
- This plugin adds the ability to create your own proxy commands that players can use on your network.
- When creating a command in the configuration file, you can choose from many different types that have different functions.
- You can delete any command in the configuration file and it will be removed from the server.
- You can have multiple commands with the same type as long as the identifier is different.
- The reload command lets you reload all the commands so you don't have to restart the server.
Command Example
# The commands identifier.
info:
# The type of command.
type: "info"
# If the command is enabled.
enabled: true
# The command name.
# In this instance it will let you do /leaf.
name: "leaf"
# The message sent to the player when they run the command.
message:
- "&8&m&l-------&r &a&lLeaf &8&m&l-------"
- "&7"
- "&7Velocity Proxy Plugin"
- "&7Version &f<version>"
- "&7Author &fSmudge"
- "&7"
- "&8&m&l--------------------"
| Command Type |
Usage |
Description |
| message |
[name] [player] [message] |
Used to message a player. |
| reply |
/[name] [message] |
Used to reply to the last message. |
| ignore |
/[name] [player] |
Used to ignore a player. |
| unignore |
/[name] [player] |
Used to unignore a player. |
| ignorelist |
/[name] |
Used to list the ignored players. |
| togglemessages |
/[name] |
Used to toggle your messages. |
| togglespy |
/[name] |
Used to toggle veiwing other players messages. |
| messagehistory |
/[name] [query] |
Similar to core protect, it lets you see player's message history. |
| alert |
/[name] [message] |
Used to send a message to everyone on the server. |
| alertraw |
/[name] [json] |
Used to send a json message to everyone on the server. Simular to /tellraw |
| chat |
/[name] [message] |
Used to send a message to a chat. |
| find |
/[name] [player] |
Used to get infomation about an online player. |
| history |
/[name] [player] |
Used to get global session history about a player from the database. |
| info |
/[name] |
Displays a message to the player. |
| inventory |
/[name] |
Displays a inventory to the player. |
| join |
/[name] |
Sends a player to a server. |
| list |
/[name] |
Displays a list of players that are online. This could be a staff list. |
| reload |
/[name] |
Reloads the entire plugin. Configuration, commands, events, placeholders and variables. |
| report |
/[name] |
Send a message to a group of players. Commonly used to report bugs to staff. Simular to /helpop |
| send |
/[name] [from] [to] |
Send a group of players to a server. |
| servers |
/[name] |
Displays a list of online servers and the amount of players online. |
| teleport |
/[name] [player] |
Teleport to the server a player is on. |
| variable |
/[name] [value] |
Set the value of a variable. You can set options for players to pick from. |
And more! All command types are listed in the wiki. If you have any suggestions, feel free to create a feature request in the GitHub issues page or message me directly in the discord.
Events
You can create custom events.
Currently there is only a option for when a player joins the proxy.
This allows you to do load balancing, and send players to the server with the least amount of players on.
load_balancing:
# The type of event.
type: "playerjoin"
# Used to enable and disable the event.
# Defaults to true.
enabled: false
# Add commands to be run.
commands:
- "leaf"
# Add servers to be sent to.
# If more than 1 server is stated the player will
# go to the server with the least amount of players
servers:
- "hub1"
- "hub2"
Placeholders
You can create your own conditional placeholders that you can use elsewhere in the plugin.
- Placeholders will not work outside the plugin.
Example of a vanish placeholder
vanish_colour:
condition: "MATCH:<vanished>"
options:
true: "&#c0fce6"
false: "&#ffffee"
Variables
When the database is enabled, you can use variables to store data for each player.
When you have created a variable in the configuration, you can then create a command for players to set the variable. This enables you to used the variable as a placeholder in other commands and inventories.
Example
# The variable identifier.
# Example: <theme> will return the string data that is set for the player.
theme:
# The default value if the variable is not set.
default: "green"
评论 0
登录后参与评分
还没有评论,来抢沙发吧