Global Powertools 全局动力工具

作者:SciGor 发布时间:2017年2月11日 原生版本:未知 测试支持:1.7,1.8,1.11,1.12,1.13,1.14

轻松设置无限高度可配置的电动工具

点此下载

插件详细介绍

🛠️ Global Powertools 插件

Global Powertools 是一款功能丰富的 Minecraft 插件,允许你创建自定义的“能量工具”(powertool),玩家可以使用这些工具执行预设的命令。你可以设置工具的激活方式、消耗属性、冷却时间,以及命令的执行者。非常适合需要自定义指令或创建一次性购买指令的服务器。

✨ 主要功能

  • 自定义能量工具数量不限。
  • 可设置激活能量工具所需的手(左手、右手或双手)。
  • 可设置激活方式(空中点击、点击方块等)。
  • 支持在命令中使用变量,例如玩家名称。
  • 自定义权限节点。
  • 可使能量工具物品在使用后消失(消耗品)。
  • 允许能量工具命令从玩家或控制台运行(甚至可以强制没有权限的玩家运行)。
  • 冷却时间设置,以及用于绕过冷却时间的权限节点。

📜 指令 & 权限

  • /getname:查找物品/方块的实际名称。
    • 权限:gpt.getname
  • /gpt reload:重新加载插件配置。
    • 权限:gpt.reload

⚙️ 配置示例 (config.yml)


#Example powertool
example:
  item: stick
  #Which hand must hold the item to activate. Options: any, left, right
  hand: any
  #What must be done to activate the powertool. Options: air, block, both
  click: any
  #Must the player be sneaking to activate the powertool. Options: true, false
  sneak: false
  #Command that will be run when the powertool is activated
  command: say [name] has used the example powertool
  #Console command that will be run when the powertool is activated
  console-command: say [name] has used the example powertool
  #Does the item disappear on use? Options: true, false
  consumable: false
  #Sets a custom permission node for the powertool
  permission: gpt.example
  #Sets the powertool command to run as console even if the player has permission
  force-console: false
  #Sets a custom cooldown in seconds
  cooldown: 5
  #Sets a permission node to bypass the cooldown
  cooldown-bypass: gpt.cooldown.bypass
  #Sets the item to have a custom name and lore (text under the name)
  displayname: '&aExample Powertool'
  lore:
  - '&bThis is an example powertool'
  - '&cIt does nothing special'
#Allows you to get the name of the item you are holding
getname:
  permission: gpt.getname
#Allows you to reaload the plugin config
reload:
  permission: gpt.reload

📝 待办事项

  • 游戏中创建能量工具的 GUI 界面
  • 更多命令变量