mirror of
https://github.com/TotalFreedomMC/OpenInv.git
synced 2024-12-23 00:15:08 +00:00
Fix for metrics exceptions on startup
This commit is contained in:
parent
2c7655424c
commit
80ad1f971a
2 changed files with 8 additions and 4 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue