mirror of
https://github.com/shansen/EggCatcher.git
synced 2024-11-25 11:35:32 +01:00
Removed updater to prepare moving away from dev.bukkit.org
This commit is contained in:
parent
b41a7099b0
commit
d4ba2ea5dc
10
pom.xml
10
pom.xml
@ -69,10 +69,6 @@
|
||||
<id>Plugin Metrics</id>
|
||||
<url>http://repo.mcstats.org/content/repositories/public</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>gravity-repo</id>
|
||||
<url>http://repo.gravitydevelopment.net</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
<dependencies>
|
||||
@ -94,11 +90,5 @@
|
||||
<version>R8-SNAPSHOT</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>net.gravitydevelopment.updater</groupId>
|
||||
<artifactId>updater</artifactId>
|
||||
<version>2.3</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
|
@ -20,7 +20,6 @@ package me.shansen.EggCatcher;
|
||||
|
||||
import me.shansen.EggCatcher.listeners.EggCatcherEntityListener;
|
||||
import me.shansen.EggCatcher.listeners.EggCatcherPlayerListener;
|
||||
import net.gravitydevelopment.updater.Updater;
|
||||
import net.milkbowl.vault.economy.Economy;
|
||||
import org.bukkit.entity.Egg;
|
||||
import org.bukkit.plugin.PluginManager;
|
||||
@ -41,10 +40,6 @@ public class EggCatcher extends JavaPlugin {
|
||||
public void onEnable() {
|
||||
this.CheckConfigurationFile();
|
||||
|
||||
if (this.getConfig().getBoolean("CheckForUpdates")) {
|
||||
this.CheckUpdate();
|
||||
}
|
||||
|
||||
PluginManager pm = this.getServer().getPluginManager();
|
||||
|
||||
final EggCatcherPlayerListener playerListener = new EggCatcherPlayerListener();
|
||||
@ -67,10 +62,6 @@ public class EggCatcher extends JavaPlugin {
|
||||
}
|
||||
}
|
||||
|
||||
public void CheckUpdate() {
|
||||
Updater updater = new Updater(this, 35664, this.getFile(), Updater.UpdateType.DEFAULT, false);
|
||||
}
|
||||
|
||||
public void CheckConfigurationFile() {
|
||||
double configVersion = this.getConfig().getDouble("ConfigVersion", 0.0);
|
||||
if (configVersion == 2.2) {
|
||||
|
@ -138,4 +138,3 @@ Messages:
|
||||
CatchChanceSuccess: ""
|
||||
HealthPercentageFail: "The mob has more than %s percent health left and cannot be caught!"
|
||||
ConfigVersion: 2.2
|
||||
CheckForUpdates: true
|
Loading…
Reference in New Issue
Block a user