Fixed a error for the updater.
This commit is contained in:
parent
1ddc880e3b
commit
90c7817634
@ -139,7 +139,8 @@ public class LibsDisguises extends JavaPlugin implements Listener {
|
|||||||
getCommand("undisguiseplayer").setExecutor(new UndisguisePlayerCommand());
|
getCommand("undisguiseplayer").setExecutor(new UndisguisePlayerCommand());
|
||||||
saveDefaultConfig();
|
saveDefaultConfig();
|
||||||
permission = getConfig().getString("Permission");
|
permission = getConfig().getString("Permission");
|
||||||
if (getConfig().getBoolean("NotifyUpdate"))
|
if (getConfig().getBoolean("NotifyUpdate")) {
|
||||||
|
currentVersion = getDescription().getVersion();
|
||||||
Bukkit.getScheduler().scheduleAsyncDelayedTask(this, new Runnable() {
|
Bukkit.getScheduler().scheduleAsyncDelayedTask(this, new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
try {
|
try {
|
||||||
@ -161,6 +162,7 @@ public class LibsDisguises extends JavaPlugin implements Listener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
Bukkit.getPluginManager().registerEvents(this, this);
|
Bukkit.getPluginManager().registerEvents(this, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user