Solved Session help

Discussion in 'Plugin Development' started by Reteckz, Apr 5, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    Reteckz

    Hey guys,

    I'm having some trouble figuring out how to work with sessions, so now i'm here.

    I need it for a request accept command, but the request has to timeout after 5 minutes, otherwise they could for example still teleport towards you after 4 days if you ever requested them and they didn't accept.

    ~ Reteckz
     
  2. You could just save the time the request came with who did the request to whom and then when the player tries to accept check if that time+5mins<=currenttime and if not don't tp.
     
  3. Offline

    Reteckz

    Ah, didn't think of that, thanks :3
     
Thread Status:
Not open for further replies.

Share This Page