1. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

moarCommands (mC)

Discussion in 'Modding [KAG]' started by Asu, Apr 25, 2014.

  1. Asu

    Asu THD Team THD Team Forum Moderator

    Messages:
    1,580
    moarCommands is a mod I'm currently working on that will add a lot of commands making the admin and modder life easier.

    For example, it will have a bukkit-like permission system ( And I might remove seclev support later ), that will allow you to allow or deny the usage of certain commands ( And certain kinds ) to groups or a single person.
    e.g. from the current doc : I want to restrict !bot to Geti and AsuMagic. I'll write : !mc premissions username[geti&&asumagic] forcommand[!bot]

    I might show some more examples later, as this is only a project, I'd just like to gather ideas and have some encouragement.
     
    Vampire and Yagger like this.
  2. bunnie

    bunnie Haxor Tester

    Messages:
    1,319
    what are the ready things/things that you will make for sure except !mc permissions?
     
  3. Asu

    Asu THD Team THD Team Forum Moderator

    Messages:
    1,580
    That can sound a bit strange but I'm preparating the doc before coding ( It helps me to precisely know what to do ). For now, there's not much done, but look at that :
    Code:
        !teleport
        >> ALIAS : !tp
            [!] MULTIPLE SYNTAXES
            [i] Supports multiple player selection
                [i] player_a can be a player list.
                [i] player_b can't be a player list.
                [i] player_ab can be a player list ONLY if no optional argument is entered. e.g. : It can be in !tp <player_c> [player_b] but can't in !tp <player_c>
            [i] Supports relative positions
          
            !tp <player_ab> [player_b]
                -> Teleports you to player_ab if player_b is not specified, otherwise teleport player_ab to player_b
                    e.g. : I'm AsuMagic. I want to teleport to Geti. I'll write : !tp geti
                  
            !tp -pc [player_a] <x> <y>
                -> Teleports you to the specified position if player_a is not specified, otherwise teleport player_a to the specified position.
                    e.g. : I'm AsuMagic. I want to teleport to x:64 and y:64. I'll write : !tp -pc 64 64
          
            !tp -bb <blob_a> <blob_b>
                -> Teleports blob_a to blob_b.
                    e.g. : I want to teleport all sharks to one of all the bisons. I'll write : !tp -bb @b[shark] @b[bison]??1
          
            !tp -bp <blob_a> <player_b>
                -> Teleports blob_a to player_b.
                    e.g. : I want to teleport all lit bombs, bisons and sharks to Ej. I'll write : !tp -bp @e[keg&&bomb&&bison&&shark] ej
    Code:
            >>> Command arguments <<<
          
        state : true or false
        string : text, such as this : "this is a string". ( Doesn't need "" ).
    
            >>> Player selection method <<<
          
        [i] Player selection is not case sensitive. It might run slightly faster than all in caps.
           This can be changed by the variable 'player_case_check' or !mc player_case_check false
          
        [Player]&&[Player]
            -> Chooses the players separated by the &&.
                e.g. : I want to teleport Geti, MM and Henry to AsuMagic. I'll write : !tp geti&&mm&&henry asumagic
      
        [Playerlist]--[Player]
            -> Ignores [Player] in [Playerlist]. It's useful only when using auto-completing variables.
                e.g. : I want to teleport everyone but me to Geti. I'll write : !tp @a--@m geti
          
        [Playerlist]??[ToChoose]
            -> Chooses [ToChoose] players in [Playerlist].
                e.g. : I want to teleport either AsuMagic or MM to Geti. I'll write : !tp asumagic&&mm??1 geti
                e.g. 2 : I want to teleport 3 of all the players to MM. I'll write : !tp @a??3 mm
          
        @a
            -> Chooses all the players manually using the multiple players syntax.
                e.g. : I want to teleport everyone to Geti. I'll write : !tp @a geti.
                      In a party where there's AsuMagic, Henry, Lance, Geti and MM, that'd be the same as writing !tp asumagic&&henry&&lance&&geti&&mm geti
      
        @m
            -> Chooses the player executing the command.
                e.g. : I want to teleport everyone to me. I'll write : !tp @a @m.
      
        *
            -> Ignores a SINGLE char
                e.g. : I want to teleport Geti to me. I can write : !tp G*** @m
    
        *!*
            -> Ignores multiple chars
                e.g. : I want to tp Henry_the_great_warrior to me. I'll write : !tp Hen*!* @m
                      This will do the same : !tp Henry*!*great*!*warrior @m
     
    Vampire likes this.