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

Command arguments

Discussion in 'Development' started by Levi, Feb 20, 2019.

  1. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
    How do i add those available commands in chat when u type a command that got arguments? Like vanilla
     

    Attached Files:

    Last edited: Feb 20, 2019
  2. DsZk

    DsZk Spider

    Messages:
    8
    GitHub:
    litekpe
    case "yourcommand":
    if ($sender instanceof Player) {
    if (!isset($args[0])) {
    if (!$sender->hasPermission("yourcommand.command")) {
    $sender->sendMessage($this->noperm);
    return true;
    } else {
    $sender->sendMessage($this->prefix . "The args of ur command.");
    return true;
     
  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.