Fixed deprecation
This commit is contained in:
@@ -24,7 +24,6 @@ public class ProxyError extends Error {
|
||||
* @deprecated Proxy Errors should include a cause.
|
||||
*/
|
||||
@Deprecated
|
||||
@SuppressWarnings("DeprecatedIsStillUsed")
|
||||
public ProxyError(@NotNull final String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
@@ -22,6 +22,6 @@ public class UnsupportedVersionException extends ProxyError {
|
||||
* Thrown if the server is running an unsupported NMS version.
|
||||
*/
|
||||
public UnsupportedVersionException() {
|
||||
super("You're running an unsupported server version: " + ProxyConstants.NMS_VERSION);
|
||||
super("You're running an unsupported server version: " + ProxyConstants.NMS_VERSION, new IllegalStateException());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user