Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {minestats.status} = 1
- {chat.status} = 1
- options:
- tag: &a[&2iProMine&a]
- permission: &4Nie masz uprawnien by uzywac tej komendy!
- chat-format: {LVL} {NICK}: {MESSAGE}
- chat-format2:{NICK}: {MESSAGE}
- lvl: 1
- # Ilosc ptk za wykopanie danej rudy
- #Punkty za diament
- ptkd: 1
- #Punkty za stone
- ptks: 0.01
- #Punkty za zloto
- ptkg: 0.1
- #Punkty za lapis
- ptkl: 0.1
- #Punkty za zelazo
- ptki: 0.1
- #Punkty za wegiel
- ptkc: 0.05
- #Punkty za emerald
- ptke: 0.1
- #Punkty za redstone
- ptkr: 0.1
- # Nie zmieniaj nizej nic!!!
- #Punkty za diament
- wykopaned: 1
- #Punkty za stone
- wykopanes: 1
- #Punkty za zloto
- wykopaneg: 1
- #Punkty za zelazo
- wykopanei: 1
- #Punkty za lapis
- wykopanel: 1
- #Punkty za emerald
- wykopanee: 1
- #Punkty za wegiel
- wykopanec: 1
- #Punkty za redstone
- wykopaner: 1
- # Za ile wykopanej rudy/bloku ma daac 1 lvl!!!
- diax: 6
- stone: 500
- zloto: 14
- zelazo: 16
- lapis: 20
- emerald: 5
- wegiel: 30
- redstone: 22
- on join:
- {wykopaned::%name of player%} is not set:
- set {wykopaned::%name of player%} to 0
- {wykopanei::%name of player%} is not set:
- set {wykopanei::%name of player%} to 0
- {wykopaneg::%name of player%} is not set:
- set {wykopaneg::%name of player%} to 0
- {wykopanee::%name of player%} is not set:
- set {wykopaner::%name of player%} to 0
- {wykopaner::%name of player%} is not set:
- set {wykopanec::%name of player%} to 0
- {wykopanec::%name of player%} is not set:
- set {wykopanee::%name of player%} to 0
- {wykopanel::%name of player%} is not set:
- set {wykopanel::%name of player%} to 0
- {wykopanes::%name of player%} is not set:
- set {wykopanes::%name of player%} to 0
- {mine.stats::%name of player%} is not set:
- set {mine.stats::%name of player%} to 0
- {lvl.stats::%name of player%} is not set:
- set {lvl.stats::%name of player%} to 0
- on mine of diamond ore:
- {minestats.status} is 1:
- add {@ptkd} to {mine.stats::%player%}
- add {@wykopaned} to {wykopaned::%player%}
- send "&6* &7Dostajesz &c{@ptkd} ptk &7za wykopanie &bdiaxa"
- add 1 to {testd.%player%}
- if {testd.%player%} is {@diax}:
- set {testd.%player%} to 0
- add {@lvl} to {lvl.stats::%player%}
- broadcast "%player% &aLEVEL UP &f(&2%{lvl.stats::%player%}%&f)!"
- play 100 of effect "fireworksSpark" with data 1 at player
- play 100 of effect "witchMagic" with data 1 at player
- play 100 of effect "flame" with data 1 at player
- on mine of iron ore:
- {minestats.status} is 1:
- add {@ptki} to {mine.stats::%player%}
- add {@wykopanei} to {wykopanei::%player%}
- send "&6* &7Dostajesz &c{@ptki} ptk &7za wykopanie &8zelaza"
- add 1 to {testi.%player%}
- if {testi.%player%} is {@zelazo}:
- set {testi.%player%} to 0
- add {@lvl} to {lvl.stats::%player%}
- broadcast "%player% &aLEVEL UP &f(&2%{lvl.stats::%player%}%&f)!"
- play 100 of effect "fireworksSpark" with data 1 at player
- play 100 of effect "witchMagic" with data 1 at player
- play 100 of effect "flame" with data 1 at player
- on mine of gold ore:
- {minestats.status} is 1:
- add {@ptkg} to {mine.stats::%player%}
- add {@wykopaneg} to {wykopaneg::%player%}
- send "&6* &7Dostajesz &c{@ptkg} ptk &7za wykopanie &6zlota"
- add 1 to {testg.%player%}
- if {testg.%player%} is {@zloto}:
- set {testg.%player%} to 0
- add {@lvl} to {lvl.stats::%player%}
- broadcast "%player% &aLEVEL UP &f(&2%{lvl.stats::%player%}%&f)!"
- play 100 of effect "fireworksSpark" with data 1 at player
- play 100 of effect "witchMagic" with data 1 at player
- play 100 of effect "flame" with data 1 at player
- on mine of emerald ore:
- {minestats.status} is 1:
- add {@ptke} to {mine.stats::%player%}
- add {@wykopanee} to {wykopanee::%player%}
- add 1 to {teste.%player%}
- if {teste.%player%} is {@emerald}:
- set {teste.%player%} to 0
- add {@lvl} to {lvl.stats::%player%}
- broadcast "%player% &aLEVEL UP &f(&2%{lvl.stats::%player%}%&f)!"
- play 100 of effect "fireworksSpark" with data 1 at player
- play 100 of effect "witchMagic" with data 1 at player
- play 100 of effect "flame" with data 1 at player
- on mine of redstone ore:
- {minestats.status} is 1:
- add {@ptkr} to {mine.stats::%player%}
- add {@wykopaner} to {wykopaner::%player%}
- send "&6* &7Dostajesz &c{@ptkr} ptk &7za wykopanie &bdiaxa"
- add 1 to {testr.%player%}
- if {testr.%player%} is {@redstone}:
- set {testr.%player%} to 0
- add {@lvl} to {lvl.stats::%player%}
- broadcast "%player% &aLEVEL UP &f(&2%{lvl.stats::%player%}%&f)!"
- play 100 of effect "fireworksSpark" with data 1 at player
- play 100 of effect "witchMagic" with data 1 at player
- play 100 of effect "flame" with data 1 at player
- on mine of coal ore:
- {minestats.status} is 1:
- add {@ptkc} to {mine.stats::%player%}
- add {@wykopanec} to {wykopanec::%player%}
- send "&6* &7Dostajesz &c{@ptkc} ptk &7za wykopanie &0wegla"
- add 1 to {testc.%player%}
- if {testc.%player%} is {@wegiel}:
- set {testc.%player%} to 0
- add {@lvl} to {lvl.stats::%player%}
- broadcast "%player% &aLEVEL UP &f(&2%{lvl.stats::%player%}%&f)!"
- play 100 of effect "fireworksSpark" with data 1 at player
- play 100 of effect "witchMagic" with data 1 at player
- play 100 of effect "flame" with data 1 at player
- on mine of lapis lazuli ore:
- {minestats.status} is 1:
- add {@ptkl} to {mine.stats::%player%}
- add {@wykopanel} to {wykopanel::%player%}
- send "&6* &7Dostajesz &c{@ptkl} ptk &7za wykopanie &1lapisu"
- add {@wykopanel} to {minel::%player%}
- add 1 to {tests.%player%}
- if {testl.%player%} is {@lapis}:
- set {testl.%player%} to 0
- add {@lvl} to {lvl.stats::%player%}
- broadcast "%player% &aLEVEL UP &f(&2%{lvl.stats::%player%}%&f)!"
- play 100 of effect "fireworksSpark" with data 1 at player
- play 100 of effect "witchMagic" with data 1 at player
- play 100 of effect "flame" with data 1 at player
- on mine of stone:
- {minestats.status} is 1:
- add {@ptks} to {mine.stats::%player%}
- add {@wykopanes} to {wykopanes::%player%}
- add {@wykopanes} to {miners::%player%}
- add 1 to {tests.%player%}
- if {tests.%player%} is {@stone}:
- set {tests.%player%} to 0
- add {@lvl} to {lvl.stats::%player%}
- broadcast "%player% &aLEVEL UP &f(&2%{lvl.stats::%player%}%&f)!"
- play 100 of effect "fireworksSpark" with data 1 at player
- play 100 of effect "witchMagic" with data 1 at player
- play 100 of effect "flame" with data 1 at player
- if chance of 0.01%:
- send "&6* &7Dostajesz &c{@ptks} ptk &7za wykopanie stone"
- command /ipromine [<text>] [<offlineplayer>] [<text>] [<number>]:
- trigger:
- if arg 1 is "staty":
- send "&a--------------[ &2MINE-STATY&a ]--------------"
- send "&c* &7Punkty: &c%{mine.stats::%player%}%"
- send "&c* &7LVL: &c%{lvl.stats::%player%}%"
- send "&c* &7Wykopane &8Stone: &c%{wykopanes::%player%}%"
- send "&c* &7Wykopane &bDiamenty: &c%{wykopaned::%player%}%"
- send "&c* &7Wykopane &6Zloto: &c%{wykopaneg::%player%}%"
- send "&c* &7Wykopane &8Zelazo: &c%{wykopanei::%player%}%"
- send "&c* &7Wykopany &0Wegiel: &c%{wykopanec::%player%}%"
- send "&c* &7Wykopane &1Lapis: &c%{wykopanel::%player%}%"
- send "&c* &7Wykopane &4Redstone: &c%{wykopaner::%player%}%"
- send "&c* &7Wykopane &aEmeraldy: &c%{wykopanee::%player%}%"
- send "&a--------------[ &2MINE-STATY&a ]--------------"
- if arg 1 is "staty":
- if arg 2 is set:
- send "&a--------------[ &2MINE-STATY&a ]--------------"
- send "&c* &7Statystyki gracza: &a%arg 2%"
- send "&c* &7LVL: &c%{lvl.stats::%arg 2%}%"
- send "&c* &7Punkty: &c%{mine.stats::%arg 2%}%"
- send "&c* &7Wykopane &8Stone: &c%{wykopanes::%arg 2%}%"
- send "&c* &7Wykopane &bDiamenty: &c%{wykopaned::%arg 2%}%"
- send "&c* &7Wykopane &6Zloto: &c%{wykopaneg::%arg 2%}%"
- send "&c* &7Wykopane &8Zelazo: &c%{wykopanei::%arg 2%}%"
- send "&c* &7Wykopany &0Wegiel: &c%{wykopanec::%arg 2%}%"
- send "&c* &7Wykopane &1Lapis: &c%{wykopanel::%arg 2%}%"
- send "&c* &7Wykopane &4Redstone: &c%{wykopaner::%arg 2%}%"
- send "&c* &7Wykopane &aEmeraldy: &c%{wykopanee::%arg 2%}%"
- send "&a--------------[ &2MINE-STATY&a ]--------------"
- stop
- if arg 1 is "reset":
- if player has permission "admin":
- broadcast "{@tag} &cReset Statystyk"
- delete {lvl.stats::%player%}
- delete {mine.stats::%player%}
- delete {wykopanes::%player%}
- delete {wykopaned::%player%}
- delete {wykopaneg::%player%}
- delete {wykopanei::%player%}
- delete {wykopanec::%player%}
- delete {wykopanel::%player%}
- delete {wykopaner::%player%}
- delete {wykopanee::%player%}
- delete {tests.%player%}
- delete {testd.%player%}
- delete {testg.%player%}
- delete {testi.%player%}
- delete {testc.%player%}
- delete {testl.%player%}
- delete {testr.%player%}
- delete {teste.%player%}
- stop
- else:
- send "{@tag} {@permission}"
- stop
- if arg 1 is "pomoc":
- send "&a-----------------[ &2MINE-STATY&a ]----------------"
- send "&a/ipromine pomoc <nick> &f- &bLista komend"
- send "&a/ipromine staty <nick> &f- &bPokazuje twoje lub kogos staty"
- send "&a/ipromine on/off &f- &bON/OFF dostawanie punktow i lvl"
- send "&a/ipromine-chat on/off &f- &bWlaczasz/Wylaczasz chat z lvl"
- send "&a/ipromine reset &f- &bResetujesz wszystkim staty"
- send "&a/ipromine punkty <gracz> wymien <liczba> &f- &bWymiania sie punkty za kase"
- send "&a-----------------[ &2MINE-STATY&a ]-----------------"
- if arg 1 is "on":
- if player has permission "admin":
- set {minestats.status} to 1
- send "{@tag} &7IProMine &awlaczony"
- stop
- if arg 1 is "off":
- if player has permission "admin":
- set {minestats.status} to 0
- send "{@tag} &7IProMine &cwylaczony"
- stop
- if arg 1 is "punkty":
- if arg 2 is set:
- if arg 3 is "wymien":
- if arg 4 is set:
- execute console command "/eco give %arg 2% %arg 4%"
- remove arg 4 from {mine.stats::%arg 2%}
- send "{@tag} &7Wymianiles &a%arg 4% punktow &7na &a%arg 4%$"
- stop
- else:
- send "&aPodaj ilosc"
- stop
- else:
- send "&2Uzyj: &a/ipromine punkty <nick> wymien <ilosc>"
- stop
- else:
- send "&aPodaj nick"
- stop
- else:
- send "&2Uzyj: &a/ipromine staty &a<&fnick&a>"
- stop
- command /ipromine-chat [<text>] [<text>]:
- trigger:
- if arg 1 is "on":
- if player has permission "admin":
- set {chat.status} to 1
- send "{@tag} &7IProMine-Chat &awlaczony"
- stop
- if arg 1 is "off":
- if player has permission "admin":
- set {chat.status} to 0
- send "{@tag} &7IProMine-Chat &cwylaczony"
- stop
- else:
- send "{@tag} {@permission}"
- else:
- send "&2Uzyj: &a/ipromine-chat <&2on&f/&2off&f/&2>"
- stop
- on chat:
- if player has permission "admin":
- {chat.status} is 1:
- set {_chat} to "{@chat-format}"
- replace all "{RANK}" with "%coloured player's prefix%" in {_chat}
- replace all "{NICK}" with "%display name of player%" in {_chat}
- replace all "{MESSAGE}" with "&f%coloured message%" in {_chat}
- replace all "{LVL}" with "&f[&6%{lvl.stats::%player%}%&f]" in {_chat}
- replace all "{AMATOR}" with "&f[&6AMATOR&f]" in {_chat}
- send "%{_chat}%" to all players
- cancel event
- {chat.status} is 0:
- set {_chat} to "{@chat-format2}"
- replace all "{RANK}" with "%coloured player's prefix%" in {_chat}
- replace all "{NICK}" with "%display name of player%" in {_chat}
- replace all "{MESSAGE}" with "&f%coloured message%" in {_chat}
- send "%{_chat}%" to all players
- cancel event
- stop
Advertisement
Add Comment
Please, Sign In to add comment