issue was wrong import the whole time

This commit is contained in:
Sleaker 2012-01-31 17:45:29 -08:00
parent 0a677273c6
commit 53613cd0f9
2 changed files with 3 additions and 15 deletions

View File

@ -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;

View File

@ -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
} }