mirror of
https://github.com/shansen/EggCatcher.git
synced 2025-02-18 03:21:38 +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>
|
<id>Plugin Metrics</id>
|
||||||
<url>http://repo.mcstats.org/content/repositories/public</url>
|
<url>http://repo.mcstats.org/content/repositories/public</url>
|
||||||
</repository>
|
</repository>
|
||||||
<repository>
|
|
||||||
<id>gravity-repo</id>
|
|
||||||
<url>http://repo.gravitydevelopment.net</url>
|
|
||||||
</repository>
|
|
||||||
</repositories>
|
</repositories>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
@ -94,11 +90,5 @@
|
|||||||
<version>R8-SNAPSHOT</version>
|
<version>R8-SNAPSHOT</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>net.gravitydevelopment.updater</groupId>
|
|
||||||
<artifactId>updater</artifactId>
|
|
||||||
<version>2.3</version>
|
|
||||||
<scope>compile</scope>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
|
@ -20,7 +20,6 @@ package me.shansen.EggCatcher;
|
|||||||
|
|
||||||
import me.shansen.EggCatcher.listeners.EggCatcherEntityListener;
|
import me.shansen.EggCatcher.listeners.EggCatcherEntityListener;
|
||||||
import me.shansen.EggCatcher.listeners.EggCatcherPlayerListener;
|
import me.shansen.EggCatcher.listeners.EggCatcherPlayerListener;
|
||||||
import net.gravitydevelopment.updater.Updater;
|
|
||||||
import net.milkbowl.vault.economy.Economy;
|
import net.milkbowl.vault.economy.Economy;
|
||||||
import org.bukkit.entity.Egg;
|
import org.bukkit.entity.Egg;
|
||||||
import org.bukkit.plugin.PluginManager;
|
import org.bukkit.plugin.PluginManager;
|
||||||
@ -41,10 +40,6 @@ public class EggCatcher extends JavaPlugin {
|
|||||||
public void onEnable() {
|
public void onEnable() {
|
||||||
this.CheckConfigurationFile();
|
this.CheckConfigurationFile();
|
||||||
|
|
||||||
if (this.getConfig().getBoolean("CheckForUpdates")) {
|
|
||||||
this.CheckUpdate();
|
|
||||||
}
|
|
||||||
|
|
||||||
PluginManager pm = this.getServer().getPluginManager();
|
PluginManager pm = this.getServer().getPluginManager();
|
||||||
|
|
||||||
final EggCatcherPlayerListener playerListener = new EggCatcherPlayerListener();
|
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() {
|
public void CheckConfigurationFile() {
|
||||||
double configVersion = this.getConfig().getDouble("ConfigVersion", 0.0);
|
double configVersion = this.getConfig().getDouble("ConfigVersion", 0.0);
|
||||||
if (configVersion == 2.2) {
|
if (configVersion == 2.2) {
|
||||||
|
@ -138,4 +138,3 @@ Messages:
|
|||||||
CatchChanceSuccess: ""
|
CatchChanceSuccess: ""
|
||||||
HealthPercentageFail: "The mob has more than %s percent health left and cannot be caught!"
|
HealthPercentageFail: "The mob has more than %s percent health left and cannot be caught!"
|
||||||
ConfigVersion: 2.2
|
ConfigVersion: 2.2
|
||||||
CheckForUpdates: true
|
|
Loading…
Reference in New Issue
Block a user