Fix for metrics exceptions on startup

This commit is contained in:
lishid 2012-02-11 17:45:52 -05:00
parent 2c7655424c
commit 80ad1f971a
2 changed files with 8 additions and 4 deletions

View file

@ -182,14 +182,18 @@ public class Metrics {
}
// First tell the server about us
postPlugin(plugin, false);
try {
postPlugin(plugin, false);
} catch (Exception e) {
System.out.println("[Metrics] " + e.getMessage());
}
// Ping the server in intervals
plugin.getServer().getScheduler().scheduleAsyncRepeatingTask(plugin, new Runnable() {
public void run() {
try {
postPlugin(plugin, true);
} catch (IOException e) {
} catch (Exception e) {
System.out.println("[Metrics] " + e.getMessage());
}
}

View file

@ -1,6 +1,6 @@
name: OpenInv
main: lishid.openinv.OpenInv
version: 1.7.4
version: 1.7.5
author: lishid
website: http://forums.bukkit.org/threads/15379/
description: >
@ -13,7 +13,7 @@ commands:
/<command> - Open last person's inventory
/<command> <Player> - Open a player's inventory
searchinv:
aliases: [si, search]
aliases: [si]
description: Search and list players having a specific item
usage: |
/<command> <Item> [MinAmount] - Item can be the Item ID or the CraftBukkit Item Name, MinAmount is the minimum amount to be considered.