mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-11-26 20:16:18 +01:00
If the product's license check fails, periodically broadcast a message
This commit is contained in:
parent
d0abbf26ec
commit
1e0de3d844
@ -103,6 +103,12 @@ public abstract class SongodaPlugin extends JavaPlugin {
|
||||
ChatColor.RED + "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
|
||||
this.licensePreventedPluginLoad = true;
|
||||
SongodaCore.registerPlugin(this, CraftaroProductVerification.getProductId(), (CompatibleMaterial) null);
|
||||
|
||||
getServer().getScheduler().scheduleSyncRepeatingTask(this, () -> {
|
||||
String pluginName = getDescription().getName();
|
||||
String pluginUrl = "https://craftaro.com/marketplace/product/" + CraftaroProductVerification.getProductId();
|
||||
Bukkit.broadcastMessage(ChatColor.RED + pluginName + " has not been activated. Please download " + pluginName + " here: " + pluginUrl);
|
||||
}, 5 * 20, 60 * 20);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user