Plugin code review

Hi I am trying to make a plugin that sends accumulated points every 5 hours and this is what I got so far.
the loop is okay. I see the text in the log but I don’t think it sends the points. can you guys take a look?
time is 5000 to test it out.

Screenshot 2021-07-27 101327

You should also check to see if you are in an academy.

Hmm. I don’t know how to do that but It already works I tried it. I want to know if you can tell me how can I make a gui and add a button that sends the packet