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

Leaves Plugin #271

Merged
merged 5 commits into from
Jul 23, 2024
Merged

Leaves Plugin #271

merged 5 commits into from
Jul 23, 2024

Conversation

MC-XiaoHei
Copy link
Member

No description provided.

@MC-XiaoHei MC-XiaoHei mentioned this pull request Jul 23, 2024
11 tasks
@MC-XiaoHei MC-XiaoHei marked this pull request as ready for review July 23, 2024 05:02
@MC-XiaoHei MC-XiaoHei merged commit 632f5c3 into master Jul 23, 2024
2 checks passed
+ public ApiVersion deserialize(final Type type, final Object obj) throws SerializationException {
+ try {
+ final ApiVersion version = ApiVersion.getOrCreateVersion(obj.toString());
+ if (version.isOlderThan(MINIMUM)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里应该支持过旧不支持过新 类似于bukkit api-version

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里是仿照Paper逻辑的。
为了防止你把1.13的插件也标上leaves plugin tag

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里是仿照Paper逻辑的。 为了防止你把1.13的插件也标上leaves plugin tag

那我们是否需要一个MAXIMUM version用来防止使用超版本的api

Lumine1909 pushed a commit to Lumine1909/LeavesFork that referenced this pull request Sep 15, 2024
* Create devcontainer.json

* feat: leaves plugins base

* Show leaves plugins in /plugins

* Fix LeavesPluginMeta

* Delete .devcontainer directory
@MC-XiaoHei MC-XiaoHei deleted the dev/leaves-plugin-conf branch September 16, 2024 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants