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

Add scheduled bot remove #274

Merged
merged 3 commits into from
Jul 25, 2024

Conversation

Bluemangoo
Copy link
Member

patches/server/0010-Fakeplayer-support.patch Outdated Show resolved Hide resolved
+ }
+ bot.removeTaskId = Bukkit.getScheduler().runTaskLater(CraftScheduler.MINECRAFT, () -> {
+ bot.die(bot.damageSources().fellOutOfWorld());
+ }, time).getTaskId();
Copy link
Contributor

Choose a reason for hiding this comment

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

这里schedule是tick计时
我们是否需要考虑tick rate的问题?

Copy link
Member Author

Choose a reason for hiding this comment

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

不想考虑tick rate了。

@Bluemangoo Bluemangoo force-pushed the feat/bot-scheduled-remove branch from e62da13 to 3a87199 Compare July 25, 2024 03:55
@Bluemangoo Bluemangoo marked this pull request as ready for review July 25, 2024 04:14
@Bluemangoo Bluemangoo requested a review from s-yh-china July 25, 2024 05:26
Copy link
Member

@s-yh-china s-yh-china left a comment

Choose a reason for hiding this comment

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

好我瞎了

@Bluemangoo
Copy link
Member Author

那合了。

@s-yh-china s-yh-china merged commit 21be64a into LeavesMC:master Jul 25, 2024
1 check passed
Lumine1909 pushed a commit to Lumine1909/LeavesFork that referenced this pull request Sep 15, 2024
* Add scheduled bot remove

* Add scheduled bot remove

* Remove scheduled bot remove
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.

假人定时移除
3 participants