13
0
geforkt von Mirrors/Paper
Dieser Commit ist enthalten in:
Jason Penilla 2022-06-09 16:19:38 -07:00
Ursprung 0c33aa5134
Commit b953c4baa7

Datei anzeigen

@ -13,13 +13,26 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
} }
+ /** + /**
+ * Gets the default no permission message used on the server
+ * + *
+ * @return the default no permission message used on the server + * @return the default message
+ * @deprecated use {@link #permissionMessage()}
+ */ + */
+ @NotNull + @NotNull
+ @Deprecated
+ public static String getPermissionMessage() { + public static String getPermissionMessage() {
+ return server.getPermissionMessage(); + return server.getPermissionMessage();
+ } + }
+
+ /**
+ * Gets the default no permission message used on the server
+ *
+ * @return the default message
+ */
+ @NotNull
+ public static net.kyori.adventure.text.Component permissionMessage() {
+ return server.permissionMessage();
+ }
+ +
/** /**
* Creates a PlayerProfile for the specified uuid, with name as null. * Creates a PlayerProfile for the specified uuid, with name as null.