mirror of
https://github.com/plexusorg/Plex.git
synced 2025-07-12 04:28:34 +00:00
space
This commit is contained in:
@ -162,11 +162,11 @@ public class Plex extends PlexPlugin implements PlexApiProvider
|
|||||||
this.setPermissionHandler(new NativePermissionHandler());
|
this.setPermissionHandler(new NativePermissionHandler());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config.getBoolean("enable-updates"))
|
if (config.getBoolean("enable-updates"))
|
||||||
{
|
{
|
||||||
updateChecker = new UpdateChecker();
|
updateChecker = new UpdateChecker();
|
||||||
PlexLog.log("Update checking enabled");
|
PlexLog.log("Update checking enabled");
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://bstats.org/plugin/bukkit/Plex/14143
|
// https://bstats.org/plugin/bukkit/Plex/14143
|
||||||
Metrics metrics = new Metrics(this, 14143);
|
Metrics metrics = new Metrics(this, 14143);
|
||||||
|
@ -39,10 +39,10 @@ public class PlexCMD extends PlexCommand
|
|||||||
send(sender, mmString("<light_purple>Authors: <gold>Telesphoreo, Taahh"));
|
send(sender, mmString("<light_purple>Authors: <gold>Telesphoreo, Taahh"));
|
||||||
send(sender, mmString("<light_purple>Built by: <gold>" + BuildInfo.getAuthor() + " <light_purple>on <gold>" + BuildInfo.getDate()));
|
send(sender, mmString("<light_purple>Built by: <gold>" + BuildInfo.getAuthor() + " <light_purple>on <gold>" + BuildInfo.getDate()));
|
||||||
send(sender, mmString("<light_purple>Run <gold>/plex modules <light_purple>to see a list of modules."));
|
send(sender, mmString("<light_purple>Run <gold>/plex modules <light_purple>to see a list of modules."));
|
||||||
if (plugin.config.getBoolean("enable-updates"))
|
if (plugin.config.getBoolean("enable-updates"))
|
||||||
{
|
{
|
||||||
plugin.getUpdateChecker().getUpdateStatusMessage(sender, true, 2);
|
plugin.getUpdateChecker().getUpdateStatusMessage(sender, true, 2);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
if (args[0].equalsIgnoreCase("reload"))
|
if (args[0].equalsIgnoreCase("reload"))
|
||||||
@ -103,10 +103,10 @@ public class PlexCMD extends PlexCommand
|
|||||||
{
|
{
|
||||||
return messageComponent("noPermissionRank", "an Owner or Developer");
|
return messageComponent("noPermissionRank", "an Owner or Developer");
|
||||||
}
|
}
|
||||||
if (!plugin.getConfig().getBoolean("enable-updates"))
|
if (!plugin.getConfig().getBoolean("enable-updates"))
|
||||||
{
|
{
|
||||||
return mmString("<red>Updating has been disabled in the config.");
|
return mmString("<red>Updating has been disabled in the config.");
|
||||||
}
|
}
|
||||||
for (PlexModule module : plugin.getModuleManager().getModules())
|
for (PlexModule module : plugin.getModuleManager().getModules())
|
||||||
{
|
{
|
||||||
plugin.getUpdateChecker().updateJar(sender, module.getPlexModuleFile().getName(), true);
|
plugin.getUpdateChecker().updateJar(sender, module.getPlexModuleFile().getName(), true);
|
||||||
@ -121,10 +121,10 @@ public class PlexCMD extends PlexCommand
|
|||||||
{
|
{
|
||||||
return messageComponent("noPermissionRank", "an Owner or Developer");
|
return messageComponent("noPermissionRank", "an Owner or Developer");
|
||||||
}
|
}
|
||||||
if (!plugin.getConfig().getBoolean("enable-updates"))
|
if (!plugin.getConfig().getBoolean("enable-updates"))
|
||||||
{
|
{
|
||||||
return mmString("<red>Updating has been disabled in the config.");
|
return mmString("<red>Updating has been disabled in the config.");
|
||||||
}
|
}
|
||||||
if (!plugin.getUpdateChecker().getUpdateStatusMessage(sender, false, 0))
|
if (!plugin.getUpdateChecker().getUpdateStatusMessage(sender, false, 0))
|
||||||
{
|
{
|
||||||
return mmString("<red>Plex is already up to date!");
|
return mmString("<red>Plex is already up to date!");
|
||||||
|
@ -25,10 +25,10 @@ public class ServiceManager implements PlexBase
|
|||||||
registerService(new GameRuleService());
|
registerService(new GameRuleService());
|
||||||
registerService(new TimingService());
|
registerService(new TimingService());
|
||||||
|
|
||||||
if (plugin.config.getBoolean("enable-updates"))
|
if (plugin.config.getBoolean("enable-updates"))
|
||||||
{
|
{
|
||||||
registerService(new UpdateCheckerService());
|
registerService(new UpdateCheckerService());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void startServices()
|
public void startServices()
|
||||||
|
Reference in New Issue
Block a user