Random Command

Discussion in 'Plugin Requests' started by FooFooArmy, Jun 23, 2015.

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

    FooFooArmy

    Hey Everyone,

    I would like a plugin that lets you do the command /random <group> and it executes a random command listed in the config.

    config:

    Commands:

    default:
    - f join blue
    - f join red

    default2:
    - f join blue1
    - f join red 1

    So when player does /random default they half a 50% change of getting either command listed in that group . If they do /random default2 they have a 50% chance executing either command listed in the group.

    An example permission would be random.command

    If anyone can do this, it would be greatly appreciated.

    Thanks
    Foofoo
     
    Last edited by a moderator: Jun 24, 2015
  2. Offline

    mrCookieSlime Retired Staff

    @FooFooArmy
    CommandOverride can help you out here.
    Link is in my Signatute.

    Simply do the following:

    /random:
    - RANDOM 1 2
    - 'command:/f join blue'
    - 'command:/f join red'
     
Thread Status:
Not open for further replies.

Share This Page