Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- Karma.Prefix: &a&lKarma &7&l// #Use this to change the prefix of the messages
- command /aboutkarma: #Don't remove this! You don't have to let your players know about this command... It's only telling players about my social media.
- trigger:
- send "&a&lKarma is a plugin created by GamingGeek!" to player
- send "&f&lCheck him out on social media:" to player
- send "&b&lTwitter &f&l- &b&l@GamingGeekHD" to player
- send "&c&lYouTube &f&l- &c&lhttps://www.youtube.com/GamingGeek" to player
- send "&a&lWebsite &f&l- &a&lhttps://www.spectralmc.tk" to player
- on chat:
- if player has permission "karma.basic":
- if message contains "gg":
- if {karma.recent.%player%} is not set:
- add 5 to {karma.%player%}
- make player execute command "/cooldown"
- send "{@Karma.Prefix} &3&l 5 Karma has been added to your balance!"
- else:
- send "{@Karma.Prefix} &3&lYour Karma is currently on cooldown. You can't earn more!"
- on chat:
- if player has permission "karma.rank1":
- if message contains "gg":
- if {karma.recent.%player%} is not set:
- add 10 to {karma.%player%}
- make player execute command "/cooldown"
- send "{@Karma.Prefix} &3&l 10 Karma has been added to your balance! &f&l[RANK Bonus]"
- else:
- send "{@Karma.Prefix} &3&lYour Karma is currently on cooldown. You can't earn more!"
- on chat:
- if player has permission "karma.rank2":
- if message contains "gg":
- if {karma.recent.%player%} is not set:
- add 15 to {karma.%player%}
- make player execute command "/cooldown"
- send "{@Karma.Prefix} &3&l 15 Karma has been added to your balance! &f&l[RANK Bonus]"
- else:
- send "{@Karma.Prefix} &3&lYour Karma is currently on cooldown. You can't earn more!"
- on chat:
- if player has permission "karma.rank3":
- if message contains "gg":
- if {karma.recent.%player%} is not set:
- add 20 to {karma.%player%}
- make player execute command "/cooldown"
- send "{@Karma.Prefix} &3&l 20 Karma has been added to your balance! &f&l[RANK Bonus]"
- else:
- send "{@Karma.Prefix} &3&lYour Karma is currently on cooldown. You can't earn more!"
- on chat:
- if player has permission "karma.rank4":
- if message contains "gg":
- if {karma.recent.%player%} is not set:
- add 25 to {karma.%player%}
- make player execute command "/cooldown"
- send "{@Karma.Prefix} &3&l 25 Karma has been added to your balance! &f&l[RANK Bonus]"
- else:
- send "{@Karma.Prefix} &3&lYour Karma is currently on cooldown. You can't earn more!"
- on chat:
- if player has permission "karma.staff":
- if message contains "gg":
- if {karma.recent.%player%} is not set:
- add 75 to {karma.%player%}
- make player execute command "/cooldown"
- send "{@Karma.Prefix} &3&l 75 Karma has been added to your balance! &c&l[STAFF Bonus]"
- else:
- send "{@Karma.Prefix} &3&lYour Karma is currently on cooldown. You can't earn more!"
- command /karma [<player>]:
- trigger:
- if arg-1 is set:
- send "{@Karma.Prefix} &3&l%arg-1%'s Karma balance is %{karma.%arg-1%}%!"
- else:
- send "{@Karma.Prefix} &3&lYour Karma balance is %{karma.%player%}%!"
- command /cooldown:
- trigger:
- set {karma.recent.%player%} to true
- wait 10 minutes
- delete {karma.recent.%player%}
- command /resetkarma:
- trigger:
- send "{@Karma.Prefix} &c&lARE YOU SURE YOU WANT TO DELETE YOUR KARMA?"
- send "{@Karma.Prefix} &c&lUSE /DELCONFIRM IF YOUR SURE!"
- command /delconfirm:
- trigger:
- set {karma.%player%} to 0
- send "{@Karma.Prefix} &a&lYour Karma Was Reset!"
- command /delcooldown:
- permission: mineplex.admin
- trigger:
- delete {karma.recent.%player%}
- command /karmaconvert:
- trigger:
- wait 1 second
- open chest with 6 rows named "&f&lKarma Converter" to player
- format slot 10 of player with gold ingot named "&a&lYour Current Karma" with lore "&fYou currently have %{karma.%player%}% Karma!" to close then run [make player execute command "/karma"]
- format slot 12 of player with coal ore named "&7250 Karma > 10000 Coins" with lore "&f&lClick Me to convert 250 Karma to 100 Coins" to close then run [make player execute command "/karma250GUI"]
- #Use the commands down below to add different conversion amounts. e.g. Copy /karma250GUI and /karma250 and replace the 250 with the amount.
- #Then add another slot in the GUI (Copy the line 'format slot 12 of player' and change the command, amount and item)
- command /karma250GUI:
- trigger:
- wait 1 second
- open chest with 6 rows named "&f&l250 KARMA > 10000 COINS" to player
- format slot 4 of player with gold ingot named "&a&lKarma" with lore "&f250 Karma will be||&ftaken from your account balance" to be unstealable
- format slot 22 of player with emerald named "&f10000 Coins" with lore "&fCan be used to buy kits!" to be unstealable
- format slot 27 of player with emerald block named "&aOK" with lore "" to close then run [make player execute command "/karma250"]
- format slot 28 of player with emerald block named "&aOK" with lore "" to close then run [make player execute command "/karma250"]
- format slot 29 of player with emerald block named "&aOK" with lore "" to close then run [make player execute command "/karma250"]
- format slot 36 of player with emerald block named "&aOK" with lore "" to close then run [make player execute command "/karma250"]
- format slot 37 of player with emerald block named "&aOK" with lore "" to close then run [make player execute command "/karma250"]
- format slot 38 of player with emerald block named "&aOK" with lore "" to close then run [make player execute command "/karma250"]
- format slot 45 of player with emerald block named "&aOK" with lore "" to close then run [make player execute command "/karma250"]
- format slot 46 of player with emerald block named "&aOK" with lore "" to close then run [make player execute command "/karma250"]
- format slot 47 of player with emerald block named "&aOK" with lore "" to close then run [make player execute command "/karma250"]
- format slot 33 of player with redstone block named "&cCANCEL" with lore "" to close then run [make player execute command "/karmaconvert"]
- format slot 34 of player with redstone block named "&cCANCEL" with lore "" to close then run [make player execute command "/karmaconvert"]
- format slot 35 of player with redstone block named "&cCANCEL" with lore "" to close then run [make player execute command "/karmaconvert"]
- format slot 42 of player with redstone block named "&cCANCEL" with lore "" to close then run [make player execute command "/karmaconvert"]
- format slot 43 of player with redstone block named "&cCANCEL" with lore "" to close then run [make player execute command "/karmaconvert"]
- format slot 44 of player with redstone block named "&cCANCEL" with lore "" to close then run [make player execute command "/karmaconvert"]
- format slot 51 of player with redstone block named "&cCANCEL" with lore "" to close then run [make player execute command "/karmaconvert"]
- format slot 52 of player with redstone block named "&cCANCEL" with lore "" to close then run [make player execute command "/karmaconvert"]
- format slot 53 of player with redstone block named "&cCANCEL" with lore "" to close then run [make player execute command "/karmaconvert"]
- command /karma250: #Thanks to xUndefined on the SkUnity forums (forums.skunity.com) for help with this command
- trigger:
- set {_karma} to 250
- if {karma.%player%} is less than {_karma}:
- send "{@Karma.Prefix} &c&lTRANSACTION FAILED!" #Change this if you want a different fail message
- stop
- else:
- execute console command "/eco give %player% 10000" #Change this command if you have a different economy plugin (Default is Vault and Essentials)
- remove 250 from {karma.%player%}
- send "{@Karma.Prefix} &a&lTransaction Successful!" #Change this if you want a different success message
Advertisement
Add Comment
Please, Sign In to add comment