Begin work on 1.18.2

- Add update checking
- World generation is broken
- Won't compile unless 1.18.2 is in your local Maven repository
- No longer need MiniMessage bundled in Plex
- Customizable namehistory
- Set comments in config.yml if they're missing
This commit is contained in:
2022-03-03 15:45:19 -06:00
parent 22a26edd79
commit 0b5425b8d2
17 changed files with 131 additions and 56 deletions

View File

@ -0,0 +1,32 @@
package dev.plex.services.impl;
import dev.plex.services.AbstractService;
public class UpdateCheckerService extends AbstractService
{
public UpdateCheckerService()
{
super(true, true);
}
private boolean newVersion = false;
@Override
public void run()
{
if (!newVersion)
{
if (plugin.getUpdateChecker().check())
{
newVersion = true;
}
}
}
@Override
public int repeatInSeconds()
{
// Every 30 minutes
return 1800;
}
}