mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-24 11:38:40 +01:00
Use the fragment identifier instead of query parameters to convey the editor/verbose/treeview data id
This fixes the issue Multicraft panels have with displaying ? characters in console. (absolute quality)
This commit is contained in:
parent
aaeaf5cfa0
commit
42c8cb1354
@ -77,7 +77,7 @@ public class HolderEditor<T extends PermissionHolder> extends SubCommand<T> {
|
||||
}
|
||||
|
||||
// form a url for the editor
|
||||
String url = plugin.getConfiguration().get(ConfigKeys.WEB_EDITOR_URL_PATTERN) + "?" + pasteId;
|
||||
String url = plugin.getConfiguration().get(ConfigKeys.WEB_EDITOR_URL_PATTERN) + "#" + pasteId;
|
||||
|
||||
Message.EDITOR_URL.send(sender);
|
||||
|
||||
|
@ -114,7 +114,7 @@ public class EditorCommand extends SingleCommand {
|
||||
}
|
||||
|
||||
// form a url for the editor
|
||||
String url = plugin.getConfiguration().get(ConfigKeys.WEB_EDITOR_URL_PATTERN) + "?" + pasteId;
|
||||
String url = plugin.getConfiguration().get(ConfigKeys.WEB_EDITOR_URL_PATTERN) + "#" + pasteId;
|
||||
|
||||
Message.EDITOR_URL.send(sender);
|
||||
|
||||
|
@ -92,7 +92,7 @@ public class TreeCommand extends SingleCommand {
|
||||
Message.TREE_UPLOAD_START.send(sender);
|
||||
PermissionCache permissionData = user == null ? null : user.getCachedData().getPermissionData(plugin.getContextForUser(user).orElse(plugin.getContextManager().getStaticContexts()));
|
||||
String id = view.uploadPasteData(sender, user, permissionData);
|
||||
String url = plugin.getConfiguration().get(ConfigKeys.TREE_VIEWER_URL_PATTERN) + "?" + id;
|
||||
String url = plugin.getConfiguration().get(ConfigKeys.TREE_VIEWER_URL_PATTERN) + "#" + id;
|
||||
|
||||
Message.TREE_URL.send(sender);
|
||||
|
||||
|
@ -114,7 +114,7 @@ public class VerboseCommand extends SingleCommand {
|
||||
} else {
|
||||
Message.VERBOSE_UPLOAD_START.send(sender);
|
||||
String id = listener.uploadPasteData();
|
||||
String url = plugin.getConfiguration().get(ConfigKeys.VERBOSE_VIEWER_URL_PATTERN) + "?" + id;
|
||||
String url = plugin.getConfiguration().get(ConfigKeys.VERBOSE_VIEWER_URL_PATTERN) + "#" + id;
|
||||
|
||||
Message.VERBOSE_RESULTS_URL.send(sender);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user