mirror of
https://github.com/TotalFreedomMC/OpenInv.git
synced 2024-09-29 05:04:00 +00:00
Fix for metrics exceptions on startup
This commit is contained in:
parent
2c7655424c
commit
80ad1f971a
|
@ -182,14 +182,18 @@ public class Metrics {
|
||||||
}
|
}
|
||||||
|
|
||||||
// First tell the server about us
|
// 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
|
// Ping the server in intervals
|
||||||
plugin.getServer().getScheduler().scheduleAsyncRepeatingTask(plugin, new Runnable() {
|
plugin.getServer().getScheduler().scheduleAsyncRepeatingTask(plugin, new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
try {
|
try {
|
||||||
postPlugin(plugin, true);
|
postPlugin(plugin, true);
|
||||||
} catch (IOException e) {
|
} catch (Exception e) {
|
||||||
System.out.println("[Metrics] " + e.getMessage());
|
System.out.println("[Metrics] " + e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: OpenInv
|
name: OpenInv
|
||||||
main: lishid.openinv.OpenInv
|
main: lishid.openinv.OpenInv
|
||||||
version: 1.7.4
|
version: 1.7.5
|
||||||
author: lishid
|
author: lishid
|
||||||
website: http://forums.bukkit.org/threads/15379/
|
website: http://forums.bukkit.org/threads/15379/
|
||||||
description: >
|
description: >
|
||||||
|
@ -13,7 +13,7 @@ commands:
|
||||||
/<command> - Open last person's inventory
|
/<command> - Open last person's inventory
|
||||||
/<command> <Player> - Open a player's inventory
|
/<command> <Player> - Open a player's inventory
|
||||||
searchinv:
|
searchinv:
|
||||||
aliases: [si, search]
|
aliases: [si]
|
||||||
description: Search and list players having a specific item
|
description: Search and list players having a specific item
|
||||||
usage: |
|
usage: |
|
||||||
/<command> <Item> [MinAmount] - Item can be the Item ID or the CraftBukkit Item Name, MinAmount is the minimum amount to be considered.
|
/<command> <Item> [MinAmount] - Item can be the Item ID or the CraftBukkit Item Name, MinAmount is the minimum amount to be considered.
|
||||||
|
|
Loading…
Reference in a new issue