1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Solved Creating a command (CustomUI)

Discussion in 'Development' started by Karanpatel567, Oct 26, 2017.

  1. Karanpatel567

    Karanpatel567 Baby Zombie

    Messages:
    115
    GitHub:
    Karanpatel567
    Hey does anyone know how to create a command on customui?
     
  2. romainbizet46

    romainbizet46 Witch

    Messages:
    52
    Customui by XenialDan ?
    PHP:
    public function onCommand(CommandSender $senderCommand $commandstring $label, array $args) : bool {
            
    $cmd strtolower($command->getName());
            switch(
    $cmd){
                case 
    "test":
                
    UIAPI::showUIbyID($pluginMainClass::$uis['UINAME'], $player);
    }
     
  3. Karanpatel567

    Karanpatel567 Baby Zombie

    Messages:
    115
    GitHub:
    Karanpatel567
    Wasn't needed I figured it out.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.