Allow servers to send openable links to players (#7351)
* commitin' * Update core/assets/bundles/bundle.properties Co-authored-by: Anuken <arnukren@gmail.com> * Update bundle_fr.properties * s p a c e Co-authored-by: Anuken <arnukren@gmail.com>
This commit is contained in:
@@ -111,6 +111,13 @@ public class Menus{
|
||||
ui.hudfrag.showToast(Fonts.getGlyph(Fonts.icon, (char)unicode), text);
|
||||
}
|
||||
|
||||
@Remote(variants = Variant.both)
|
||||
public static void openURI(String uri){
|
||||
if(uri == null) return;
|
||||
|
||||
ui.showConfirm(Core.bundle.format("linkopen", uri), () -> Core.app.openURI(uri));
|
||||
}
|
||||
|
||||
//internal use only
|
||||
@Remote
|
||||
public static void removeWorldLabel(int id){
|
||||
|
||||
Reference in New Issue
Block a user