Solved Hide Slash "/" to execute command

Discussion in 'Bukkit Help' started by Texgabs, Apr 17, 2017.

Thread Status:
Not open for further replies.
  1. Offline

    Texgabs

    Hi! everyone!
    i have a some inssue, i need hide the slash "/" in one command in my server , this because it is of harrpotter and it would be "More magic" if i can represent a command with a "Magic word" this command is:

    /somormujo

    i want to hide "/"
    then the player can write something like:

    somormujo

    without any slash and execute the command

    This is possible , i see this in other servers but how?
     
  2. Online

    timtower Administrator Administrator Moderator

    @Texgabs That runs based on chat events. Not actual commands.
     
    Texgabs likes this.
  3. Offline

    Zombie_Striker

    @Texgabs
    Listen to PlayerChatEvent. If the player types in a spell, either do the spell-code there or issue a command for the spell.
     
    Texgabs likes this.
  4. @Zombie_Striker @Texgabs
    Or rather use the AsyncPlayerChatEvent. Forcing chat to wait around for the main thread isn't the best alternative..
     
    Texgabs and Zombie_Striker like this.
  5. Offline

    Texgabs

    Thanks Guys! I solve this!
     
  6. Offline

    Zombie_Striker

    @Texgabs
    If your problem has been solved, mark this thread as solved.

    Top left side of this page > Thread Tools> Edit title, select [solved].
     
Thread Status:
Not open for further replies.

Share This Page