mirror of
https://github.com/nikdoof/bukkitxmpp.git
synced 2025-12-15 18:42:15 +00:00
Print stacktraces on error
This commit is contained in:
@@ -201,7 +201,8 @@ public class BukkitXMPP extends JavaPlugin implements PacketListener {
|
|||||||
try {
|
try {
|
||||||
sendMUCMessage("Online Players:" + buffer);
|
sendMUCMessage("Online Players:" + buffer);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
// TODO: fault handling
|
// TODO: Error handling
|
||||||
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ public class BukkitXMPPPlayerListener extends PlayerListener {
|
|||||||
plugin.sendMUCMessage("[" + p.getDisplayName() + "] " + msg);
|
plugin.sendMUCMessage("[" + p.getDisplayName() + "] " + msg);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
// TODO: Error handling
|
// TODO: Error handling
|
||||||
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -60,6 +61,7 @@ public class BukkitXMPPPlayerListener extends PlayerListener {
|
|||||||
plugin.sendMUCMessage(p.getDisplayName() + " has left the server");
|
plugin.sendMUCMessage(p.getDisplayName() + " has left the server");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
// TODO: Error handling
|
// TODO: Error handling
|
||||||
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -70,6 +72,7 @@ public class BukkitXMPPPlayerListener extends PlayerListener {
|
|||||||
plugin.sendMUCMessage(p.getDisplayName() + " has joined the server");
|
plugin.sendMUCMessage(p.getDisplayName() + " has joined the server");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
// TODO: Error handling
|
// TODO: Error handling
|
||||||
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user