TagAPI
关于未来的说明。1.8 及更高版本
随着 1.8 版本中实施的更改,TagAPI 已不再适用。因此,TagAPI 将不再接收任何更新。
但我想给用户名添加颜色!
我建议寻找一个插件,利用 Minecraft 1.6 中添加的内置记分板系统来实现这一功能,这更适合该用途!
但我想完全更改用户名!
抱歉,Mojang 使得这变得困难得多,我不认为再尝试破解它还有价值。祝你好运!:)
TagAPI!
此插件是一个插件工具,类似于 Vault 或 SpoutPlugin,用于在 Bukkit API 的正常范围之外提供额外功能。
它能做什么
是否曾想过让你的插件在他人名字上方显示不同的颜色?伪装成其他玩家来戏弄玩家?现在你可以了!
它不能做什么
- 头顶上的名称不会影响你的皮肤。这是 Minecraft 客户端的问题。
- 更改实体 ID。这意味着拥有修改版客户端的人仍然可以识别出是你,无论你使用什么名称。
- 允许超过 16 个字符的名牌(包括颜色代码!每种颜色/格式占用两个字符)。这是我无法突破的另一个 Minecraft 限制。
使用方法:
好了,既然我们已经列出了能做什么和不能做什么,以下是如何使用此插件。
我运行服务器
你来到这里很可能是因为你想使用的某个插件将名牌更改作为附加功能。只需安装此插件即可正常使用。请注意,此插件本身不会更改任何内容,仅为其他插件提供执行此类操作的能力。
我是开发者
太棒了!请查看教程以开始使用。上手很容易。
注意:请保持礼貌,除非绝对必要,否则不要在更高的事件优先级下注册。我个人这样做是为了 VanishNoPacket,因为知道玩家处于隐身状态比管理标签或假名更重要,因为它是一个管理插件。请仔细考虑优先级。大多数插件只需在默认优先级下检查事件即可。
另外值得注意的是,isModified() 方法可以让你知道另一个插件是否已经处理过名称,这可能很重要。对其他插件保持礼貌!
欢迎在 esper 网络的 #kitteh.org 频道提问。或者直接点击这里
复制
不要将此代码包含在你的插件中,而是实现此 API,以避免代码冲突或其他破坏。
支持 TagAPI 的插件
指标统计
为了确定使用情况,插件安装量由 mcstats.org 插件跟踪系统自动追踪。收集的数据包括系统信息、玩家数量、服务器和插件版本信息。数据发送至 mcstats.org,你的服务器 IP 永远不会泄露,且仅用于统计目的。如果你不想发送这些数据,请编辑 plugins/PluginMetrics/config.yml 并将 opt-out 设置为 true。
[ONELINER:更改用户的名牌!]
TagAPI
A note about the future. 1.8 and beyond
With the changes implemented in 1.8, TagAPI is no longer a good idea. As a result, TagAPI will receive no further updates.
But I want to add colors to usernames!
I suggest finding a plugin that lets you do that using the built-in scoreboard system added to Minecraft in 1.6 which is better suited for that!
But I want to change usernames completely!
Sorry, but Mojang's made it much harder and I don't feel it's worth it to try hacking that in anymore. Best of luck! :)
TagAPI!
This plugin is a plugin tool, much like Vault or SpoutPlugin, for providing additional functionality outside the normal bounds of Bukkit API.
What it does
Ever wanted your plugin to display a different color above someone's name? Disguise as another player to tease players? Now you can!
What it doesn't do
- The name over your head affects your skin. This is a minecraft client issue.
- Change entity ID. This means that someone with a modified client can still tell that it's you no matter what name you have.
- Allow nametags over 16 characters (including color codes! Two per color/format). Another minecraft limitation I can't break.
How to use:
Alright, now that we have got the list of can and can'ts out of the way, here's how to use the plugin.
I run a server
You're probably here because a plugin you want to use offers nametag changing as an additional feature. Just install this plugin and you're good to go. Note that this plugin itself doesn't change anything, just offer the ability for other plugins to do so.
I am a developer
Excellent! Take a look at the tutorial to get started. It's easy to start using this.
Note: Be polite and don't register at a higher event priority unless absolutely necessary. Personally I do this for VanishNoPacket because knowing that a player is vanished is a bit more important than an admin tag or fake name, as it's an administrative plugin. Think carefully about priorities. Most plugins should be fine just checking the event on default priority.
Also important to note, the isModified() method can let you know if another plugin has already played with the name, which can be important. Be polite to other plugins!
Feel free to ask questions in #kitteh.org on esper. Or just click here
Copying
Do not include this code in your own plugin but implement this API instead, to avoid code conflicts or other breakages.
Plugins supporting TagAPI
Click here to see a list of plugins
Metrics
To determine usage, plugin installs are automatically tracked by the mcstats.org plugin tracking system. Data collected is system information, player count, server and plugin version information. It is sent to mcstats.org and your server IP is never revealed, and is used for statistical purposes. If you don't want to send this data, edit plugins/PluginMetrics/config.yml and set opt-out to true.
[ONELINER:Change the name tag of your users!]
下载 TagAPI
下载 TagAPI
下载 TagAPI
下载 TagAPI
下载 TagAPI
下载 TagAPI
下载 TagAPI
下载 TagAPI
下载 TagAPI
下载 TagAPI
v3.0.6
支持最高至 1.7.10
v3.0.5
帮助解决禁用/重载时的问题。
支持最高至 1.7.9
v3.0.4
修复了同名玩家导致的问题。仍然支持 1.7.8 :)
v3.0.3
添加了对 CB 1.7.8 的支持
在 1.7.6 及更高版本中,更改名称标签后皮肤无法显示。由于 Mojang 的设计决策,此问题无法修复。:)
v3.0.2
添加了对 CB1.7.5 的支持。修复了 3.0.1 中的错误
v3.0
添加了 AsyncPlayerReceiveNameTagEvent,弃用了之前的事件。
如果仅注册了异步事件,性能将大幅提升。
鼓励插件开发者尽快更新。
仍支持 1.4 至 1.7-R0.3-SNAPSHOT
v2.7.1
支持 1.4 至 1.7-R0.1-SNAPSHOT
在 1.7 中存在 ProtocolLib 时不再崩溃
v2.7
支持 1.4 至 1.7-R0.1-SNAPSHOT
v2.6
支持 1.4 至 1.6.4
v2.5
支持 1.4 至 1.6.2
v2.4
支持 1.4 至 1.6.1
v2.3
支持 1.4 至 1.5.2
v2.2
支持 1.5 和 1.5.1(以及 1.4)
v2.1
支持 1.5(并且仍然支持 1.4!)
v2.0
有趣的代码清理,使未来的更新更加轻松。
进行了一些改进以允许“调皮”的插件运行。
v1.9.3
兼容 1.4.7 及更早的 1.4 构建版本
增加了更多调试信息
v1.9.2
兼容 1.4.6 及更早的 1.4 构建版本(1.4.2、1.4.5...)
添加了额外的兼容性检查。如果 TagAPI 当前对你有效,则无需升级。
v1.9.1
兼容 1.4.6、1.4.5 及其他 1.4 构建版本。
v1.9
修复了 1.8 中的一个问题,显然!
兼容 1.4,包括 12 月 5 日之后的构建版本。
当 R0.3 发布时需要此版本。
v1.8
兼容 1.4,包括 12 月 5 日之后的构建版本。
当 R0.3 发布时需要此版本。
v1.7.1
修复了启动时的一个小 bug。如果你使用不兼容的 craftbukkit 版本,此版本将不会输出堆栈跟踪。
v1.7
添加了对 ProtocolLib 的支持(可选)
如果你恰好有 ProtocolLib,现在它将与 TagAPI 完美配合。无论哪种情况都不需要更改。
更改了方法处理逻辑,以便编写糟糕的插件会抛出指向正确插件的错误
v1.5
修复了盔甲相关的 bug。
v1.4.1
将刷屏消息移至调试模式(通过设置 config.yml debug: true 启用)
v1.4
支持 1.3.1
你必须运行 BUKKIT 1.3.1 才能使用此版本
v1.3.1
修复了玩家在重生时丢失标签的问题。
如果在 1.3 服务器上启动,应该会警告你进行更新(需要更新)
v1.2
如果你使用的任何非 VanishNoPacket 的插件与此插件一起使用,这是重要的 bug 修复
v1.1
实现刷新方法,供插件开发者强制更新你的名称标签
清理了大量静态方法,除了我之外没人应该使用它们。
v1.0.2
修复了我上次愚蠢地未修复的空指针异常 (NPE)。^_^
v1.0.1
修复了一些空指针异常 (NPE)。
出于调试目的,将部分日志级别从 WARNING 更改为 FINE。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
一个在游戏内运行的 Minecraft 地图编辑器! 支持选区、蓝图、复制粘贴、笔刷和脚本。 可在创造模式中使用,也可在生存模式中临时使用。
插件
SkyBlock、OneBlock、Boxed、SkyGrid、AcidIsland、CaveBlock、Poseidon、StrangerRealms——以及更多!这些只是由 BentoBox 支持的基于岛屿的游戏模式之一。来自原版 ASkyBlock 的作者。
插件
一个强大的 API,用于为你的 Minecraft 服务器创建自定义进度。
评论 0
登录后参与评分
还没有评论,来抢沙发吧