Skip to content

Commit

Permalink
Add configuration option to disable update checking.
Browse files Browse the repository at this point in the history
  • Loading branch information
Niall7459 committed Jan 23, 2019
1 parent a142776 commit d4c32f3
Show file tree
Hide file tree
Showing 41 changed files with 92 additions and 83 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2016-2018 Niall Lindsay
~ Email: niall_lindsay@icloud.com
~ Copyright (c) 2016-2019 Niall Lindsay
~
-->

<project xmlns="http://maven.apache.org/POM/4.0.0"
Expand All @@ -11,7 +11,7 @@

<groupId>net.kitesoftware.holograms</groupId>
<artifactId>HolographicExtension</artifactId>
<version>1.10.4</version>
<version>1.10.5</version>
<build>
<plugins>
<plugin>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016-2018 Niall Lindsay
* Email: niall_lindsay@icloud.com
* Copyright (c) 2016-2019 Niall Lindsay
*
*/

package net.kitesoftware.holograms;
Expand Down Expand Up @@ -42,22 +42,24 @@ public void onEnable() {
getCommand("hext").setExecutor(commandHandler);
getCommand("hext").setTabCompleter(commandHandler);

saveDefaultConfig();
userAnimationManager = new UserAnimationManager(this);
config = new ConfigFile(this);
config.reload();

hookProtocolLib();
new Metrics(this);

if (!getConfig().getBoolean("enable-update-check")) return;

UpdateChecker updateChecker = new UpdateChecker(this, 18461);
updateChecker.checkUpdates().whenComplete((status, error) -> {
if (status.equals(UpdateChecker.UpdateStatus.MISMATCH)) {
if (status.equals(UpdateChecker.UpdateStatus.DIFFERENT_VERSION)) {
Bukkit.getConsoleSender().sendMessage("§e[HolographicExtension] §fA new update is available for download at https://www.spigotmc.org/resources/holographicextension.18461/");
} else if (status.equals(UpdateChecker.UpdateStatus.UNAVAILABLE)){
Bukkit.getConsoleSender().sendMessage("§e[HolographicExtension] §fUpdate checking is unavailable at this time.");
}
});

new Metrics(this);
}

public void hookProtocolLib() {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/net/kitesoftware/holograms/ProtocolHook.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016-2018 Niall Lindsay
* Email: niall_lindsay@icloud.com
* Copyright (c) 2016-2019 Niall Lindsay
*
*/

package net.kitesoftware.holograms;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016-2018 Niall Lindsay
* Email: niall_lindsay@icloud.com
* Copyright (c) 2016-2019 Niall Lindsay
*
*/

package net.kitesoftware.holograms;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016-2018 Niall Lindsay
* Email: niall_lindsay@icloud.com
* Copyright (c) 2016-2019 Niall Lindsay
*
*/

package net.kitesoftware.holograms.animation;
Expand Down Expand Up @@ -75,6 +75,7 @@ public List<String> setAnimations(String text) {
}
}


return Collections.singletonList(text);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016-2018 Niall Lindsay
* Email: niall_lindsay@icloud.com
* Copyright (c) 2016-2019 Niall Lindsay
*
*/

package net.kitesoftware.holograms.animation;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016-2018 Niall Lindsay
* Email: niall_lindsay@icloud.com
* Copyright (c) 2016-2019 Niall Lindsay
*
*/

package net.kitesoftware.holograms.animation.iface;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016-2018 Niall Lindsay
* Email: niall_lindsay@icloud.com
* Copyright (c) 2016-2019 Niall Lindsay
*
*/

package net.kitesoftware.holograms.animation.iface;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016-2018 Niall Lindsay
* Email: niall_lindsay@icloud.com
* Copyright (c) 2016-2019 Niall Lindsay
*
*/

package net.kitesoftware.holograms.animation.subanimation;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016-2018 Niall Lindsay
* Email: niall_lindsay@icloud.com
* Copyright (c) 2016-2019 Niall Lindsay
*
*/

package net.kitesoftware.holograms.animation.subanimation;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016-2018 Niall Lindsay
* Email: niall_lindsay@icloud.com
* Copyright (c) 2016-2019 Niall Lindsay
*
*/

package net.kitesoftware.holograms.animation.subanimation;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016-2018 Niall Lindsay
* Email: niall_lindsay@icloud.com
* Copyright (c) 2016-2019 Niall Lindsay
*
*/

package net.kitesoftware.holograms.animation.subanimation;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016-2018 Niall Lindsay
* Email: niall_lindsay@icloud.com
* Copyright (c) 2016-2019 Niall Lindsay
*
*/

package net.kitesoftware.holograms.animation.subanimation;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016-2018 Niall Lindsay
* Email: niall_lindsay@icloud.com
* Copyright (c) 2016-2019 Niall Lindsay
*
*/

package net.kitesoftware.holograms.animation.subanimation;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016-2018 Niall Lindsay
* Email: niall_lindsay@icloud.com
* Copyright (c) 2016-2019 Niall Lindsay
*
*/

package net.kitesoftware.holograms.animation.subanimation;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016-2018 Niall Lindsay
* Email: niall_lindsay@icloud.com
* Copyright (c) 2016-2019 Niall Lindsay
*
*/

package net.kitesoftware.holograms.animation.subanimation;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016-2018 Niall Lindsay
* Email: niall_lindsay@icloud.com
* Copyright (c) 2016-2019 Niall Lindsay
*
*/

package net.kitesoftware.holograms.animation.subanimation;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016-2018 Niall Lindsay
* Email: niall_lindsay@icloud.com
* Copyright (c) 2016-2019 Niall Lindsay
*
*/

package net.kitesoftware.holograms.animation.subanimation;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016-2018 Niall Lindsay
* Email: niall_lindsay@icloud.com
* Copyright (c) 2016-2019 Niall Lindsay
*
*/

package net.kitesoftware.holograms.animation.subanimation;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016-2018 Niall Lindsay
* Email: niall_lindsay@icloud.com
* Copyright (c) 2016-2019 Niall Lindsay
*
*/

package net.kitesoftware.holograms.command;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016-2018 Niall Lindsay
* Email: niall_lindsay@icloud.com
* Copyright (c) 2016-2019 Niall Lindsay
*
*/

package net.kitesoftware.holograms.command;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016-2018 Niall Lindsay
* Email: niall_lindsay@icloud.com
* Copyright (c) 2016-2019 Niall Lindsay
*
*/

package net.kitesoftware.holograms.command.subs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016-2018 Niall Lindsay
* Email: niall_lindsay@icloud.com
* Copyright (c) 2016-2019 Niall Lindsay
*
*/

package net.kitesoftware.holograms.command.subs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016-2018 Niall Lindsay
* Email: niall_lindsay@icloud.com
* Copyright (c) 2016-2019 Niall Lindsay
*
*/

package net.kitesoftware.holograms.command.subs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016-2018 Niall Lindsay
* Email: niall_lindsay@icloud.com
* Copyright (c) 2016-2019 Niall Lindsay
*
*/

package net.kitesoftware.holograms.command.subs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016-2018 Niall Lindsay
* Email: niall_lindsay@icloud.com
* Copyright (c) 2016-2019 Niall Lindsay
*
*/

package net.kitesoftware.holograms.command.subs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016-2018 Niall Lindsay
* Email: niall_lindsay@icloud.com
* Copyright (c) 2016-2019 Niall Lindsay
*
*/

package net.kitesoftware.holograms.command.subs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016-2018 Niall Lindsay
* Email: niall_lindsay@icloud.com
* Copyright (c) 2016-2019 Niall Lindsay
*
*/

package net.kitesoftware.holograms.config;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016-2018 Niall Lindsay
* Email: niall_lindsay@icloud.com
* Copyright (c) 2016-2019 Niall Lindsay
*
*/

package net.kitesoftware.holograms.config;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016-2018 Niall Lindsay
* Email: niall_lindsay@icloud.com
* Copyright (c) 2016-2019 Niall Lindsay
*
*/

package net.kitesoftware.holograms.exception;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016-2018 Niall Lindsay
* Email: niall_lindsay@icloud.com
* Copyright (c) 2016-2019 Niall Lindsay
*
*/
package net.kitesoftware.holograms.listener;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016-2018 Niall Lindsay
* Email: niall_lindsay@icloud.com
* Copyright (c) 2016-2019 Niall Lindsay
*
*/

package net.kitesoftware.holograms.listener;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016-2018 Niall Lindsay
* Email: niall_lindsay@icloud.com
* Copyright (c) 2016-2019 Niall Lindsay
*
*/

package net.kitesoftware.holograms.listener;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016-2018 Niall Lindsay
* Email: niall_lindsay@icloud.com
* Copyright (c) 2016-2019 Niall Lindsay
*
*/

package net.kitesoftware.holograms.listener;
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/net/kitesoftware/holograms/metrics/Metrics.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2016-2019 Niall Lindsay
*
*/

package net.kitesoftware.holograms.metrics;

import org.bukkit.Bukkit;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016-2018 Niall Lindsay
* Email: niall_lindsay@icloud.com
* Copyright (c) 2016-2019 Niall Lindsay
*
*/

package net.kitesoftware.holograms.placeholder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2016-2018 Niall Lindsay
* Email: niall_lindsay@icloud.com
* Copyright (c) 2016-2019 Niall Lindsay
*
*/

package net.kitesoftware.holograms.placeholder;
Expand Down
Loading

0 comments on commit d4c32f3

Please sign in to comment.