TGM
允许拥有相应权限的玩家轻松切换游戏模式!!
版本:1.6(适用于 Craftbukkit 1337+)!
GitHub:
感谢 #bukkitdev 频道里的所有人。当你们最终给予回应时,等待便是值得的!
功能:
原生支持 SuperPerms 或 PermissionsEx。
允许被授予正确权限节点的玩家使用 /togglegamemode(别名 /tgm)命令切换自己的游戏模式。
还允许用户切换其他玩家的游戏模式。
高度可配置。检查的权限节点和发送的通知均可在 config.yml 中更改。
配置文件中提供 VerboseMode(详细模式)开关。如果为 true:插件会将此命令的使用情况报告给控制台和管理员;包括失败尝试也会报告给控制台;它会在配置好的字符串末尾附加位置信息(World: X: Y: Z:)。
我最近使用我自己全新打造的“空白插件”模板重写了这个插件。然后在此发布给大家。我已经检查过其他做类似功能的插件,它们要么实现了其他“不必要”的功能,要么可配置性不够高,要么优化程度不够好。因此,在我的理解中,它在执行其特定功能方面是“最好”的。
权限:
权限节点是可配置的。
默认情况下为:
SelfNode(自身节点):ToggleGameMode.TGM
OthersNode(他人节点):ToggleGameMode.TGM.Other
AdminNode(管理员节点):ToggleGameMode.*
如果你不想分配另外两个节点,只需分配 AdminNode 即可。
操作员(Ops)始终可以使用该命令。本质上这是 '/gamemode <TheOpsName> 0/1' 的别名,因此他们理应始终拥有访问权限。
依赖项:
无
安装方法:
- 将 jar 文件放入你的 plugins 目录
- 重载插件或重启服务器:以生成配置文件
- 为你的群组或用户分配权限节点
- 永远不要再输入 /gamemode <playername> <mode> 命令了!!!
待办事项:
可能添加第三种游戏模式,但不具备飞行功能。
抑制游戏模式被更改时的默认通知。
更新日志:
v1.6 这里跳过了一些版本。v1.5 添加了 Pex 支持,v1.6 是一次彻底的重写。现在也根据 Folas1337 的请求支持 '/togglegamemode <name>'。好主意,兄弟。 :)
v1.3
进一步优化(更小、更简洁、更快)。
新增玩家权限检查失败时的通知(当然也是可配置的。;) )。
现在还会检查玩家是否为管理员(针对没有权限插件的服务器)。
新增详细模式(VerboseMode)和相应的配置选项。向在线的管理员和控制台通报命令使用情况。
除了优化之外,这些都是来自 #bukkitdev 的用户请求功能。请继续提出建议! :)
v1.2 代码和配置清理,更大、更好、更快、更强。
v1.1 现在通知内容可在 config.yml 中配置
v1.0a 实际上没有任何变化,只是现在自称 TGM
v1.0 由我在我的私人服务器上测试通过并提交到 GitHub。
概念:在 1.8 发布大约 2 秒后我就想要这个功能了。
TGM
Allow anyone with the right permission to switch their game mode easily!!
Version: 1.6 for Craftbukkit 1337+!
GitHub:
Thanks to everyone in #bukkitdev. When you finally respond its worth the wait!
Features:
Natively supports SuperPerms or PermissionsEx.
Allows players who have been granted the correct permission node to toggle their game mode using the /togglegamemode (Alias'd as /tgm) command.
Also allows for users to toggle other peoples game mode.
Very configurable. The permission node checked and the notifications sent can be changed in the config.yml
VerboseMode toggle in config. If true: the plugin will report usage of this command to the console and ops; including failed attempts to the console; It appends location information (World: X: Y: Z:) to the end of the configured strings.
I recently rewrote this using my brand spanking new 'blank plugin'. Then released it here for the rest of you. I have checked into the other plugins which do something like this, they also implement other 'unneeded' features, or aren't nearly as configurable, or aren't as optimized. In effect mine is 'the best' at doing what it does.
Permissions:
The permission nodes are configurable.
By default they are:
SelfNode: ToggleGameMode.TGM
OthersNode: ToggleGameMode.TGM.Other
AdminNode: ToggleGameMode.*
Assign the AdminNode if you dont want to assign both of the other nodes.
Ops can always use the command. Basically this is an alias of '/gamemode <TheOpsName> 0/1', and so it makes sense they should always have access.
Requires:
Nothing
Installation:
- Drop the jar in your plugins directory
- Reload the Plugins or Restart the server: To generate config
- Give your groups and/or users the Permission node
- Never type the /gamemode <playername> <mode> command ever again!!!!
ToDo:
Possibly adding a third gamemode, without the flying.
Suppress the default notice of your gamemode being changed.
History:
v1.6 Skipped a few versions here. v1.5 added Pex Support, v1.6 is a total rewrite. Now also supports '/togglegamemode <name> per request by Folas1337. Great idea bud. :)'
v1.3
Further optimization (Smaller, Sleaker, Fasterer).
New notification when player fails permission check( Configurable of course. ;) ).
Now also checks if player is op (For servers without a Permissions plugin).
New VerboseMode and config option. Tells online ops and the console about use of the command.
With the exception of the optimization all these were user requested features from #bukkitdev. Keep em coming! :)
v1.2 Code and Config cleanups, Bigger, Better, Faster, Stronger.
v1.1 Now notifications are configurable in the config.yml
v1.0a Nothing actually changed except now call ourselves TGM
v1.0 Tested working on my private server by me. Commit'd to GitHub.
Concept: Wanted this about 2seconds after 1.8 hit.
下载 TGM
下载 TGM
下载 TGM
下载 TGM
下载 TGM
下载 TGM
下载 TGM
下载 TGM
v1.6.1 为 1.2.5 重新编译
v1.6a 清理优化,正式发布于 MC 1.0+
v1.6 Bukkit 版适用于 1337、tgm,新增 <playername>
v1.5 针对当前 Bukkit (#1023) 的实验性发布。原生支持 PermissionsEx。
v1.3.1 为 CB1317 编译
v1.3
进一步优化(更精简、更优雅、更快速)。
新增玩家权限检查失败时的通知(当然可配置。;))。
现在还会检查玩家是否为 OP(适用于未安装权限插件的服务器)。
新增详细模式(VerboseMode)及相应配置选项。会向在线 OP 和控制台通报命令的使用情况。
除优化外,以上功能均为 #bukkitdev 社区用户请求添加的功能。欢迎继续提建议!:)
v1.2 代码与配置清理,更大、更好、更快、更强。
v1.1 通知现已可在 config.yml 中配置
v1.0a 实际无变化,仅将自身名称改为 TGM
v1.0 在我私人服务器上测试通过并提交至 GitHub。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
ExyliaPlugins 的库。
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
使床在所有维度中爆炸的模组
插件
为 Armor Poser 模组添加兼容性
插件
SkyBlock、OneBlock、Boxed、SkyGrid、AcidIsland、CaveBlock、Poseidon、StrangerRealms——以及更多!这些只是由 BentoBox 支持的基于岛屿的游戏模式之一。来自原版 ASkyBlock 的作者。
插件
一个在游戏内运行的 Minecraft 地图编辑器! 支持选区、蓝图、复制粘贴、笔刷和脚本。 可在创造模式中使用,也可在生存模式中临时使用。
评论 0
登录后参与评分
还没有评论,来抢沙发吧