Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugin.yml 被ntr #29

Closed
iusearch opened this issue Jan 18, 2020 · 6 comments
Closed

plugin.yml 被ntr #29

iusearch opened this issue Jan 18, 2020 · 6 comments
Assignees
Labels
🐛漏洞 需要修复的错误

Comments

@iusearch
Copy link

我自己写了个小插件,用了saveResource来保存我的plugin.yml,然而cat plugin.yml输出了这个

name: TabooLib5
main: io.izzel.taboolib.common.plugin.InternalJavaPlugin
version: 5.13

author: 坏黑%

我这个插件甚至没引入TabooLib,这算是被ntr了么

@iusearch
Copy link
Author

我的jar文件里边的plugin.yml是正常的

@IzzelAliz
Copy link
Collaborator

IzzelAliz commented Jan 19, 2020

为什么要保存plugin.yml,能否给出代码片段及服务端环境

@IzzelAliz
Copy link
Collaborator

应该只会影响一个 plugin.yml 文件,目前的解决方案是,取你自己类的classloader,classloader.getResources(name) 返回一个 enum,取里面的最后一个元素就是自己的,不过 plugin.yml 好像没有保存的必要倒是

@IzzelAliz
Copy link
Collaborator

这应该算一个 bukkit 的 bug,已经给那边发了个 issue 了

@iusearch
Copy link
Author

倒不是很重要,就是很迷

@IzzelAliz
Copy link
Collaborator

IzzelAliz commented Jan 20, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛漏洞 需要修复的错误
Projects
None yet
Development

No branches or pull requests

3 participants