Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

4 Sending UIs to players

XenialDan edited this page Sep 13, 2017 · 1 revision

This is the easiest step

Hey, be glad! The difficult part is done!

To send an UI to a player, you need its id. If you followed the method shown in Create a customui, you should have a static variable called $uis.

Remember to import UIAPI in the class in which you want to send it!

Sending is really easy:

		UIAPI::showUIbyID($plugin, MainClass::$uis['simpletest'], $player);

Make sure your main class is named correctly, and that you pass the correct plugin, id and player.

What's next, doc?

Now you need to handle the responses by a client. See the page Response handling for that.

Clone this wiki locally