Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random commands and options #4

Open
NotJustPizza opened this issue May 21, 2015 · 0 comments
Open

Random commands and options #4

NotJustPizza opened this issue May 21, 2015 · 0 comments

Comments

@NotJustPizza
Copy link

This idea will increase utility of plugin.

Random options:
!rnumber(0,100) - random number in 0-100
!rchar(8) - random word in a length of 8 characters
!rplayer - random name in online players

Random commands and options in example usage:

randomtp:
  permission: tp.random
  0:
    - console /tp !name !rnumber(-255,255) !rnumber(-255,255) !rnumber(-255,255)
    - reply &AQUAWooosh!
surprise:
  permission: donator.surprise
  0: "reply Usage: /suprise <username>"
  1:
    - random:    # define random commands
      - (10)console /give !1 diammond 1    # "(10)" is random command % chance
      - (20)console /give !1 apple 5    #20% chances
      - (69)console /give !1 stone 10    #69% chances
      - (1)console /pex user !1 group set vip   #1% chances
    - /msg !1 Suprise!
lottery:
  permission: admin.lottery
  0: "reply Usage: /lottery <item> <count>"
  1: /give !rplayer !1
  2: /give !rplayer !1 !2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant