-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Add scheduled bot remove #274
Conversation
Bluemangoo
commented
Jul 25, 2024
- resolves 假人定时移除 #273
+ } | ||
+ bot.removeTaskId = Bukkit.getScheduler().runTaskLater(CraftScheduler.MINECRAFT, () -> { | ||
+ bot.die(bot.damageSources().fellOutOfWorld()); | ||
+ }, time).getTaskId(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里schedule是tick计时
我们是否需要考虑tick rate的问题?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不想考虑tick rate了。
e62da13
to
3a87199
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好我瞎了
那合了。 |
* Add scheduled bot remove * Add scheduled bot remove * Remove scheduled bot remove