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:
Phinner
2022-08-13 13:52:46 -04:00
committed by GitHub
co-authored by Anuken
parent 1f318306a7
commit 4030acbd75
3 changed files with 9 additions and 0 deletions
+7
View File
@@ -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){