diff --git a/Plugins/Mineplex.Bungee.Mineplexer/pom.xml b/Plugins/Mineplex.Bungee.Mineplexer/pom.xml index 4b46f2b44..dceb4ba39 100644 --- a/Plugins/Mineplex.Bungee.Mineplexer/pom.xml +++ b/Plugins/Mineplex.Bungee.Mineplexer/pom.xml @@ -28,6 +28,10 @@ commons-codec commons-codec + + net.kencochrane.raven + raven-log4j2 + net.md-5 bungeecord-proxy diff --git a/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/Mineplexer.java b/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/Mineplexer.java index 8ac4d3860..a5d48c5ee 100644 --- a/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/Mineplexer.java +++ b/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/Mineplexer.java @@ -1,11 +1,15 @@ package mineplex.bungee; +import java.util.logging.Handler; +import java.util.logging.Level; import mineplex.bungee.lobbyBalancer.LobbyBalancer; import mineplex.bungee.motd.MotdManager; import mineplex.bungee.playerCount.PlayerCount; import mineplex.bungee.playerStats.PlayerStats; import mineplex.bungee.playerTracker.PlayerTracker; import mineplex.bungee.status.InternetStatus; +import net.kencochrane.raven.RavenFactory; +import net.kencochrane.raven.jul.SentryHandler; import net.md_5.bungee.api.plugin.Plugin; public class Mineplexer extends Plugin @@ -13,6 +17,11 @@ public class Mineplexer extends Plugin @Override public void onEnable() { + // Sentry setup + Handler sentry = new SentryHandler(RavenFactory.ravenInstance("https://470f12378af3453ba089e0c0a0c9aae6:292516b722594784807aebb06db8ec38@app.getsentry.com/66323")); + sentry.setLevel(Level.WARNING); + getProxy().getLogger().addHandler(sentry); + new MotdManager(this); new LobbyBalancer(this); PlayerCount playerCount = new PlayerCount(this); diff --git a/Plugins/pom.xml b/Plugins/pom.xml index 49d4c7329..60205936c 100644 --- a/Plugins/pom.xml +++ b/Plugins/pom.xml @@ -77,6 +77,12 @@ 1.4.7 compile + + net.kencochrane.raven + raven-log4j2 + 6.0.0 + compile + net.md-5 bungeecord-proxy