Compile plugin Petition

Discussion in 'Bukkit Help' started by Adrenaline, Sep 4, 2011.

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

    Adrenaline

    Hi !

    I have small request, namely i dont know where change commands from /pe /petition to /cu /cuboid

    This plugin: http://forums.bukkit.org/threads/admn-petitionplugin-v1-34-help-ticket-system-1060.27737/

    Sources: https://github.com/Xemnas33/PetitionPlugin

    I have eclipse and change this line:
    PHP:
            if (cmdname.equalsIgnoreCase("pe") || cmdname.equalsIgnoreCase("petition"))
    to:
    PHP:
            if (cmdname.equalsIgnoreCase("cu") || cmdname.equalsIgnoreCase("cuboid"))
    But dont work, srry im newbie ^
     
  2. Offline

    codename_B

    plugin.yml

    You can also use PlayerCommandPreProcessEvent.
     
  3. Offline

    Supersam654

    And in the future, plugin development questions belong in the plugin development forum.
     
  4. Offline

    Adrenaline

    Done, please close topic :D

    Bukkit FAQ help me:
    Code:
    How do I rename a command?
    
    Commands can be renamed using the file bukkit.yml
    
    To do so, under aliases add:
    
        newcommandname: [oldcommandname]
     
  5. Offline

    Supersam654

    In the top right corner, select edit thread, and then add a [SOLVED] to the front of the title.
     
Thread Status:
Not open for further replies.

Share This Page