mirror of
https://github.com/MilkBowl/Vault.git
synced 2025-01-17 13:41:31 +01:00
issue was wrong import the whole time
This commit is contained in:
parent
0a677273c6
commit
53613cd0f9
@ -46,10 +46,10 @@ import java.util.UUID;
|
|||||||
|
|
||||||
import net.milkbowl.vault.chat.Chat;
|
import net.milkbowl.vault.chat.Chat;
|
||||||
import net.milkbowl.vault.economy.Economy;
|
import net.milkbowl.vault.economy.Economy;
|
||||||
|
import net.milkbowl.vault.permission.Permission;
|
||||||
|
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.configuration.file.YamlConfiguration;
|
import org.bukkit.configuration.file.YamlConfiguration;
|
||||||
import org.bukkit.permissions.Permission;
|
|
||||||
import org.bukkit.plugin.Plugin;
|
import org.bukkit.plugin.Plugin;
|
||||||
import org.bukkit.plugin.RegisteredServiceProvider;
|
import org.bukkit.plugin.RegisteredServiceProvider;
|
||||||
|
|
||||||
|
@ -133,20 +133,8 @@ public class Vault extends JavaPlugin {
|
|||||||
// Load up the Plugin metrics
|
// Load up the Plugin metrics
|
||||||
try {
|
try {
|
||||||
metrics = new Metrics(getDescription().getVersion());
|
metrics = new Metrics(getDescription().getVersion());
|
||||||
final Vault plugin = this;
|
metrics.findCustomData(this);
|
||||||
this.getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable() {
|
metrics.beginMeasuringPlugin(this);
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
metrics.findCustomData(plugin);
|
|
||||||
try {
|
|
||||||
metrics.beginMeasuringPlugin(plugin);
|
|
||||||
} catch (IOException e) {
|
|
||||||
// ignore
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}, 10);
|
|
||||||
|
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
// ignore exception
|
// ignore exception
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user