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 19:52:46 +02:00
committed by GitHub
parent 1f318306a7
commit 4030acbd75
3 changed files with 9 additions and 0 deletions

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){