SHOW:
|
|
- or go back to the newest paste.
| 1 | # | |
| 2 | - | # Credits |
| 2 | + | # Scoreboard |
| 3 | # | |
| 4 | ||
| 5 | - | command /credits [<offlineplayer>]: |
| 5 | + | every 1 second: |
| 6 | - | aliases: /credit |
| 6 | + | loop all players: |
| 7 | if {shards.%loop-player%} is not set:
| |
| 8 | set {shards.%loop-player%} to 0
| |
| 9 | - | send "&3[%player%] Credits: &b%{credits.%player%}%"
|
| 9 | + | wipe loop-player's sidebar |
| 10 | set name of sidebar of loop-player to "&b&lW&3&la&b&lv&3&le&b&ls" | |
| 11 | - | if {credits.%arg-1%} is not set:
|
| 11 | + | set score "🚨🚨" in sidebar of loop-player to 15 |
| 12 | - | set {credits.%arg-1%} to 0
|
| 12 | + | set score "&3Shards:" in sidebar of loop-player to 14 |
| 13 | - | send "&3[%arg-1%] Credits: &b%{credits.%arg-1%}%"
|
| 13 | + | set score " &b%{shards.%loop-player%}%" in sidebar of loop-player to 13
|
| 14 | set score "🚨🚨🚨🚨" in sidebar of loop-player to 12 | |
| 15 | set score "&3Discord:" in sidebar of loop-player to 11 | |
| 16 | set score " &bdiscord.gg/" in sidebar of loop-player to 10 | |
| 17 | set score "🚨🚨🚨🚨🚨🚨" in sidebar of loop-player to 9 | |
| 18 | set score "&3BuyCraft:" in sidebar of loop-player to 8 | |
| 19 | - | command /admincredits [<offlineplayer>]: |
| 19 | + | set score "&b WavesMH.buycraft.net" in sidebar of loop-player to 7 |
| 20 | - | aliases: /admincredits, /acredits, /acredit |
| 20 | + | set score "🚨🚨🚨🚨🚨🚨🚨🚨" in sidebar of loop-player to 6 |
| 21 | set score " &bWaves.minehut.gg" in sidebar of loop-player to 5 | |
| 22 | ||
| 23 | # | |
| 24 | # Shards | |
| 25 | - | send "&3Usage: &b/acredits (Player)" |
| 25 | + | |
| 26 | ||
| 27 | - | if {credits.%arg-1%} is not set:
|
| 27 | + | command /shards [<offlineplayer>]: |
| 28 | - | set {credits.%arg-1%} to 0
|
| 28 | + | aliases: /shard |
| 29 | - | open chest with 3 row named "&3%arg-1%'s &bCredit Panel" to player |
| 29 | + | |
| 30 | if arg-1 is not set: | |
| 31 | - | format slot 10 of player with redstone named "&bRemove Credits" to close then run [make player execute command "/creditsremove %arg-1%"] |
| 31 | + | if {shards.%player%} is not set:
|
| 32 | set {shards.%player%} to 0
| |
| 33 | send "&3[%player%] Shards: &b%{credits.%player%}%"
| |
| 34 | if arg-1 is set: | |
| 35 | if {shards.%arg-1%} is not set:
| |
| 36 | set {shards.%arg-1%} to 0
| |
| 37 | - | command /creditsremove [<offlineplayer>]: |
| 37 | + | send "&3[%arg-1%] Shards: &b%{credits.%arg-1%}%"
|
| 38 | - | permission: server.creditsremove |
| 38 | + | |
| 39 | # | |
| 40 | # Credit GUI | |
| 41 | # | |
| 42 | - | send "&3Usage: &b/creditsremove (Player)" |
| 42 | + | |
| 43 | command /adminshards [<offlineplayer>]: | |
| 44 | - | send "&3Enter a number to remove from &3%arg-1%'s Credits Type &bCancel &3to cancel!" |
| 44 | + | aliases: /adminshard, /ashards, /ashard |
| 45 | - | set {creditsremove.%player%} to true
|
| 45 | + | |
| 46 | - | set {delcredits.%player%} to "{credits.%arg-1%}"
|
| 46 | + | |
| 47 | trigger: | |
| 48 | if arg-1 is not set: | |
| 49 | - | if {creditsremove.%player%} is true:
|
| 49 | + | send "&3Usage: &b/ashards (Player)" |
| 50 | if arg-1 is set: | |
| 51 | if {shards.%arg-1%} is not set:
| |
| 52 | - | send "&3Canceled removing tickets!" |
| 52 | + | set {shards.%arg-1%} to 0
|
| 53 | open chest with 3 row named "&3%arg-1%'s &bShard Panel" to player | |
| 54 | wait 1 tick | |
| 55 | format slot 10 of player with redstone named "&bRemove Shards" to close then run [make player execute command "/shardsremove %arg-1%"] | |
| 56 | - | set {_cremove} to "%message%"
|
| 56 | + | |
| 57 | - | remove {_cremove} from %{delcredits.%player%}%
|
| 57 | + | |
| 58 | # Credit Remove | |
| 59 | - | send "&3Removed &b%message% &3credits from %{creditr.%player%}%!"
|
| 59 | + | |
| 60 | - | delete {creditr.%player%}
|
| 60 | + | |
| 61 | - | cancel event |
| 61 | + | command /shardsremove [<offlineplayer>]: |
| 62 | permission: server.shardsremove | |
| 63 | permission message: &cYou do not have this permission! | |
| 64 | trigger: | |
| 65 | if arg-1 is not set: | |
| 66 | send "&3Usage: &b/shardsremove (Player)" | |
| 67 | if arg-1 is set: | |
| 68 | send "&3Enter a number to remove from &3%arg-1%'s Shards Type &bCancel &3to cancel!" | |
| 69 | set {shardsremove.%player%} to true
| |
| 70 | set {shardr.%player%} to "%arg-1%"
| |
| 71 | ||
| 72 | on chat: | |
| 73 | if shardsremove.%player%} is true: | |
| 74 | if message is "cancel": | |
| 75 | send "&f%message%" | |
| 76 | send "&3Canceled removing shards!" | |
| 77 | delete {shardsremove.%player%}
| |
| 78 | cancel event | |
| 79 | else: | |
| 80 | set {_sremove} to "%message%"
| |
| 81 | remove {_sremove} from {shards.%{shardr.%player%}%}
| |
| 82 | delete {creditsremove.%player%}
| |
| 83 | send "&3Removed &b%message% &3Shards from %{shardr.%player%}%!"
| |
| 84 | delete {shardr.%player%}
| |
| 85 | cancel event | |
| 86 | ||
| 87 | # | |
| 88 | # Shard Earnings | |
| 89 | # | |
| 90 | ||
| 91 | on mine of : |