Fixed deprecation

This commit is contained in:
Auxilor
2022-02-03 12:27:47 +00:00
parent 4eaa6ab75c
commit 5688f41b8b
2 changed files with 1 additions and 2 deletions

View File

@@ -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);
}

View File

@@ -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());
}
}