Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on rightclick with paper:
- if name of player's tool is "&3&lLoteria":
- delete player's tool
- set {_szansa1} to "%{Loteria.szansa1}%"
- set {_szansa2} to "%{Loteria.szansa2}%"
- set {_szansa3} to "%{Loteria.szansa3}%"
- set {_szansa4} to "%{Loteria.szansa4}%"
- set {_szansa5} to "%{Loteria.szansa5}%"
- set {_komenda1} to "%{Loteria.Komenda1}%"
- set {_komenda2} to "%{Loteria.Komenda2}%"
- set {_komenda3} to "%{Loteria.Komenda3}%"
- set {_komenda4} to "%{Loteria.Komenda4}%"
- set {_komenda5} to "%{Loteria.Komenda5}%"
- chance of {_szansa1}:
- execute console command {_komenda1}
- chance of {_szansa2}:
- execute console command {_komenda2}
- chance of {_szansa3}:
- execute console command {_komenda3}
- chance of {_szansa4}:
- execute console command {_komenda4}
- chance of {_szansa5}:
- execute console command {_komenda5}
- command /loteria [<integer>] [<text>] [<text>]:
- trigger:
- if player has permission "lotera.use":
- if argument 1 is set:
- if arg 2 is not empty:
- if arg 3 is not empty:
- if arg 1 is 1 or 2 or 3 or 4 or 5:
- set {_liczba} to arg 1
- set {Loteria.szansa%{_liczba}%} to arg 2
- set {Loteria.Komenda%{_liczba}%} to arg 3
- send "&aPomyslnie ustawiles &c%{_liczba}%&a!"
- command /hejterowskitest:
- trigger:
- chance of 100:
- give paper named "&3&lLoteria" to player
Advertisement
Add Comment
Please, Sign In to add comment