I am writing a plugin that will poll at intervals to check the server’s public IP address and then publish it to a service. At the moment I am simply looking to create a new thread and in a run() statement just loop, with a sleep, until the plugin is disabled. Is this the way to go or is there an alternative way I should be approaching this, using the API? Also, is there a data cache that can be used, so I can store the last IP address discovered, between restarts? I only want to publish the IP if it has changed.