Skip to content
This repository has been archived by the owner on Dec 14, 2019. It is now read-only.

hunger should be paused if the player is away #7

Open
verymilan opened this issue Jan 14, 2016 · 1 comment
Open

hunger should be paused if the player is away #7

verymilan opened this issue Jan 14, 2016 · 1 comment

Comments

@verymilan
Copy link

Hi, i guess its a good idea to stop the hunger after player pressed escape.
We using afk kick now as workaround and im not really shure if its possible.
Maybe there can be detect the esc key and the mod waits for "any key"?
Im not sure about this, but it will be very useful and servers can disable afk kick again.

@BlockMen
Copy link
Owner

BlockMen commented Feb 3, 2016

There is no way to detect if ESC has been pressed. The way hunger works are two components:

  1. activity (walking, digging, etc)
  2. time based hunger

So in your case it would be easier to increase this value https://github.com/BlockMen/hunger/blob/master/init.lua#L5 a lot ;)

Anyway, i will add the feature request label, it might become handy to have settings for those things. Or at least be more clear documented.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants