Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/#
- # #
- # Anti Spam Chat&Command #
- # #
- #_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/#
- #■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
- #==========#
- # 設定 #
- #==========#
- options:
- prefix: &7&l[&4AntiSpam&7&l]&r
- 警告文[chat]: &c連続でチャットをすることは出来ません!
- 警告文[command]: &c連続でコマンドを実行することは出来ません!
- クールダウン[chat]: 2 second
- クールダウン[command]: 2 second
- #■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
- #==========#
- # コード #
- #==========#
- on join:
- set {%player%cooldwon-chat} to now
- set {%player%cooldwon-command} to now
- on chat:
- difference between {%player%cooldwon-chat} and now is less than {@クールダウン[chat]}:
- cancel event
- send "{@prefix} {@警告文[chat]}" to player
- else:
- set {%player%cooldwon-chat} to now
- on command:
- difference between {%player%cooldwon-command} and now is less than {@クールダウン[command]}:
- cancel event
- send "{@prefix} {@警告文[command]}" to player
- else:
- set {%player%cooldwon-command} to now
- options:
- prefixs: &c[くじ] &r
- on rightclick holding paper:
- name of held item contains "&e宝くじ"
- remove 1 of held item from player
- add 20 to {bronze.elected}
- message "{@prefixs} 当選予定額のストック: &6%{bronze.elected}% 円"
- chance of 1%:
- broadcast "{@prefixs} §r %player% §cさんが§b§n[宝くじ]§r§cを当選しました"
- broadcast "{@prefixs} §r %player% の当選額: &e&l %{bronze.elected}% 円"
- add {bronze.elected} to player's balance
- set {bronze.elected} to 10000
- # __________________________________________________________
- # / / / /\ \
- # \_\___________________________________________________\_\/ /
- # / / _____ __ __ / /
- # / / / ____\ / / /_/ /\ / /
- # / / / /__ / /___ ___ __ ______ __/ /_ / /
- # / / \___ \ / __/ / __\ / / / __ //_ __/ / /
- # / / ____/ / / /\ \ / / / / / /_/ / / / / /
- # / / \_____/ /_/ /_/ /_/ /_/ / ____/ /_/ / /__
- # / / ========================== / / ========== / / \ \
- # | | /_/ | | | |
- # \_\_________________________________________________\_\_/_/
- # CommandSpy By Yopon
- # Discord : https://discord.gg/MgRVHPW
- # YouTube : https://www.youtube.com/channel/UCuLa31NHlLwiQz0cW7T60fQ
- # Twitter : https://twitter.com/Yopon100
- options:
- enabledmsg: &a CommandSpy が有効になりました。
- disablemsg: &a CommandSpy が無効になりました。
- permission: admins.cmdspy
- prefix: &6[&dCmdSpy&6]&a
- cmdspy: &6&l%player%&f: &e/%full command%
- command /cmdspy:
- aliases: commandspy
- trigger:
- if player has permission "{@permission}":
- if {cmdspy::%player%} is not set:
- set {cmdspy::%player%} to true
- send "{@prefix} {@enabledmsg}"
- else:
- delete {cmdspy::%player%}
- send "{@prefix} {@disablemsg}"
- on command:
- player is online
- loop all players:
- {cmdspy::%loop-player%} is true
- if player is op:
- send "{@prefix} {@cmdspy}" to loop-player
- else:
- send "{@prefix} {@cmdspy}" to loop-player
- Options:
- Version: 1.1
- #
- # W E L C O M E T O
- #
- # P I C K A X E L E V E L L I N G
- #
- # C R E A T E D B Y : J A C K | I P A R I S
- #
- # (! Please don't edit the settings below unless you know what you are doing !)
- Variables:
- {PickaxeLevel.%player%} = 1
- # This is the starting level for the pickaxe
- {PickaxeCounter.%player%} = 0
- # This is the starting blocks mined counter
- {UpgradePoints.%player%} = 0
- # This is the starting amount of points
- Options:
- ToolName: &fStarter Pickaxe &3| &fLevel &3: &b%{PickaxeLevel.%player%}% &fExp &3: &b%{PickaxeCounter.%player%}%&3/
- # This is the name for the pickaxe. You can change this however the Level and the Counter should be in the name
- UPoint: 1
- # This is how many points a player get's once a player has levelled a pickaxe up
- BlocksBroken: 100
- # This is the amount of blocks that need to be broken to a pickaxe has levelled up
- Header: &8&m--&7&m--&b&m--&3&m--&b( &f&lPICKAXE UPGRADES &b)&3&m--&b&m--&7&m--&8&m--
- Footer: &8&m--&7&m--&b&m--&3&m--&b( &f&lPICKAXE UPGRADES &b)&3&m--&b&m--&7&m--&8&m--
- Upgrade: &3(&bCurrent Level&3) &3» &f%{PickaxeLevel.%player%}% &3(&bUpgrade Points&3) &3» &f%{UpgradePoints.%player%}%
- # Header, Footer and upgrade message
- EffUP: 1
- ForUP: 1
- UnbUP: 1
- # These are how much the enchantment upgrades costs per points - Can change the amount
- UpgradeSuccess: &3(&bYou have enchanted your tool&3)
- MissingPoints: &3(&bYou need upgrade points to purchase this enchantment &3)
- # These are the messages if an upgrade is success or if a player doesn't have enough points
- on mine:
- if player is holding a pickaxe:
- add 1 to {PickaxeCounter.%player%}
- set name of tool of player to "{@ToolName}&b{@BlocksBroken}"
- if {PickaxeCounter.%player%} is greater than or equal to 100:
- add 1 to {PickaxeLevel.%player%}
- add {@UPoint} to {UpgradePoints.%player%}
- set {PickaxeCounter.%player%} to 0
- launch ball firework colored white and ball firework colored blue at targeted block timed 1
- command /upgrades:
- trigger:
- send ""
- send " {@Header}"
- send " &7&oClick on enchantments to upgrade your tool"
- send ""
- send " {@Upgrade}"
- send ""
- send ""
- json("%player%"," &7&oEfficiency||cmd:/eff||ttp:&3» &b&l{@EffUP} Upgrade Point%newline%&fIncrease your%newline%&f&lEfficiency&fon your tool|| &7&oFortune||cmd:/for||ttp:&3» &b&l{@ForUP} Upgrade Point%newline%&fIncrease your%newline%&f&oFortune &fon your tool|| &7&oUnbreaking||cmd:/unb||ttp:&3» &b&l{@UnbUP} Upgrade Point%newline%&fIncrease your%newline%&f&oUnbreaking &fon your tool")
- send ""
- send " {@Footer}"
- command /eff:
- trigger:
- if {UpgradePoints.%player%} is greater than or equal to {@EffUP}:
- send ""
- send " {@UpgradeSuccess}"
- send ""
- remove 1 from {UpgradePoints.%player%}
- evaluate "enchant player's tool with efficiency %level of efficiency of player's tool + 1%"
- else:
- send ""
- send " {@MissingPoints}"
- send ""
- command /for:
- trigger:
- if {UpgradePoints.%player%} is greater than or equal to {@ForUP}:
- send ""
- send " {@UpgradeSuccess}"
- send ""
- remove 1 from {UpgradePoints.%player%}
- evaluate "enchant player's tool with fortune %level of fortune of player's tool + 1%"
- else:
- send ""
- send " {@MissingPoints}"
- send ""
- command /unb:
- trigger:
- if {UpgradePoints.%player%} is greater than or equal to {@UnbUP}:
- send ""
- send " {@UpgradeSuccess}"
- send ""
- remove 1 from {UpgradePoints.%player%}
- evaluate "enchant player's tool with unbreaking %level of unbreaking of player's tool + 1%"
- else:
- send ""
- send " {@MissingPoints}"
- send ""
- Options:
- Version: 1.0
- #
- # W E L C O M E T O
- #
- # T O K E N S
- #
- # C R E A T E D B Y : J A C K | I P A R I S
- #
- # (! Please don't edit the settings below unless you know what you are doing !)
- variables:
- {tokens.%player%} = 0
- Options:
- P: &8&m---*---&8(&f&l!&8) &b&lTOKENS &8(&f&l!&8)&8&m---*---
- UP: &8&m---*---&8(&f&l!&8)&8&m---------&8(&f&l!&8)&8&m---*---
- Perm: tokens.permission
- command /tokens [<text>] [<player>] [<number>]:
- trigger:
- if arg 1 is not set:
- send "{@P}"
- send "&7&oYour token balance is;"
- send ""
- send "&bTokens &3» &f%{tokens.%player%}%"
- if arg 1 is "help":
- if player has permission "{@Perm}":
- send "{@P}"
- send "&7&oHere you can view the commands"
- send ""
- send "&b/tokens give (player) (number)"
- send "&b/tokens view (player)"
- send "&b/tokens remove (player) (number"
- send "&b/tokens reset (player)"
- send "{@UP}"
- if arg 1 is "give":
- if player has permission "{@Perm}":
- send "{@P}"
- send "&7&oPlease give a &aIGN &7and a &aNumber"
- send ""
- send "{@UP}"
- if arg 2 is set:
- if player has permission "{@Perm}":
- send "{@P}"
- send "&7&oPlease give a &anumber"
- send ""
- send "{@UP}"
- if arg 3 is set:
- if player has permission "{@Perm}":
- add number arg to {tokens.%arg-2%}
- send "{@P}"
- send "&7&oSuccess you have given a player tokens"
- send ""
- send "&a%arg-2% &7has been given &a%number arg%"
- send "{@UP}"
- send "{@P}" to arg-2
- send "&7&oYou have been given tokens" to arg-2
- send "" to arg-2
- send "&a%player% &7has given you &a%number arg% &7tokens" to arg-2
- send "{@UP}" to arg-2
- if player does not have permission "{@Perm}":
- send "&8(&c&l!&8) &cYou don't have permission to run this command."
- if arg 1 is "view":
- send "{@P}"
- send "&7&oPlease give a &aname"
- send ""
- send "{@UP}"
- if arg 2 is set:
- send "{@P}"
- send "&7&oHere you can see &a%arg-2% &7tokens"
- send ""
- send "&bTokens &3» &f%{tokens.%arg-2%}%"
- if arg 1 is "remove":
- if player has permission "{@Perm}"
- send "{@P}"
- send "&7&oPlease give a &aIGN &7and a &aNumber"
- send ""
- send "{@UP}"
- if arg 2 is set:
- if player has permission "{@Perm}":
- send "{@P}"
- send "&7&oPlease give a &anumber"
- send ""
- send "{@UP}"
- if arg 3 is set:
- if player has permission "{@Perm}":
- remove number arg from {tokens.%arg-2%}
- send "{@P}"
- send "&7&oSuccess you have removed tokens from a player"
- send ""
- send "&a%arg-2% &7has lost &a%number arg%"
- send "{@UP}"
- send "{@P}" to arg-2
- send "&7&oTokens have been taken from your acocunt" to arg-2
- send "" to arg-2
- send "&a%player% &7has taken &a%number arg% &7tokens. &7Your balance is now &a%{tokens.%arg-2%}%" to arg-2
- send "{@UP}" to arg-2
- if player does not have permission "{@Perm}":
- send "&8(&c&l!&8) &cYou don't have permission to run this command."
- if arg 1 is "reset":
- if player has permission "{@Perm}"
- send "{@P}"
- send "&7&oPlease give a &aIGN"
- send ""
- send "{@UP}"
- if arg is set:
- if player has permission "{@Perm}"
- set {tokens.%arg-2%} to 0
- send "{@P}"
- send "&7&oSucces you have reset a players token balance"
- send ""
- send "&a%arg-2% &7has had their tokens reset"
- send "{@UP}"
- send "{@P}" to arg-2
- send "&7&oYour token balance has been reset" to arg-2
- send "" to arg-2
- send "&a%player% &7has reset your balance" to arg-2
- send "{@UP}" to arg-2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement