Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ======================================
- Skript By: YouTubeJr
- Skript For: LotSkyBlock
- ======================================
- options:
- prefix: &5LotPvP&8: &7
- variables:
- oreregen = true
- {second::%player%} = 0
- {minute::%player%} = 0
- {hour::%player%} = 0
- {cmdspy::%player%} = false
- {firstjoin::%player%} = 0
- {leaveserver::%player%} = 0
- {logincount} = 0
- {mute.chat} = false
- {AutoBroadcast} = true
- on mine of cobblestone:
- if {cobblestone.%player%} is true:
- cancel event
- on mine of netherrack:
- if {cobblestone.%player%} is true:
- cancel event
- on mine of gold ore:
- if {oreregen} is true:
- cancel the event
- give player 1 gold ingot
- send action bar " &6+1 &6Gold ingot" to playe
- set {cobblestone.%player%} to true
- set event-block to bedrock
- wait 8 seconds
- set event-block to gold ore
- set {cobblestone.%player%} to false
- on mine of iron ore:
- if {oreregen} is true:
- cancel the event
- give player 1 iron ingot
- send action bar " &f+2 Iron ingot" to player
- set {cobblestone.%player%} to true
- set event-block to bedrock
- wait 8 seconds
- set event-block to iron ore
- set {cobblestone.%player%} to false
- on mine of coal ore:
- if {oreregen} is true:
- cancel the event
- give player 2 coal
- send action bar " &8+2 Coal" to player
- set {cobblestone.%player%} to true
- set event-block to bedrock
- wait 8 seconds
- set event-block to coal ore
- set {cobblestone.%player%} to false
- on mine of lapis ore:
- if {oreregen} is true:
- cancel the event
- give player 4 lapis
- send action bar " &9+4 Lapis" to player
- set {cobblestone.%player%} to true
- set event-block to bedrock
- wait 8 seconds
- set event-block to lapis ore
- set {cobblestone.%player%} to false
- on mine of diamond ore:
- if {oreregen} is true:
- cancel the event
- give player 1 diamond
- send action bar " &b+1 Diamond" to player
- set {cobblestone.%player%} to true
- set event-block to bedrock
- wait 21 seconds
- set event-block to diamond ore
- set {cobblestone.%player%} to false
- on mine of redstone ore:
- if {oreregen} is true:
- cancel the event
- give player 4 redstone
- send action bar " &c+4 Redstone" to player
- set {cobblestone.%player%} to true
- set event-block to bedrock
- wait 8 seconds
- set event-block to redstone ore
- set {cobblestone.%player%} to false
- on mine of emerald ore:
- if {oreregen} is true:
- cancel the event
- give player 1 emerald
- send action bar from " &a+1 Emerald" to player
- set {cobblestone.%player%} to true
- set event-block to bedrock
- wait 21 seconds
- set event-block to emerald ore
- set {cobblestone.%player%} to false
- on mine of quartz ore:
- if {oreregen} is true:
- cancel the event
- give player 2 quartz
- send action bar " &f+2 Quartz" to player
- set {cobblestone.%player%} to true
- set event-block to bedrock
- wait 15 seconds
- set event-block to quartz ore
- set {cobblestone.%player%} to false
- on mine of grass:
- if {oreregen} is true:
- cancel the event
- give player 1 grass
- set {cobblestone.%player%} to true
- set event-block to air
- set {cobblestone.%player%} to false
- command /ores [<text>]:
- trigger:
- if arg 1 is "enable":
- if {oreregen} is true:
- send "&8(&a&lOreRegen&8) &7Ore Regen already &aEnabled"
- else:
- set {oreregen} to true
- send "&8(&a&lOre&8) &7Ore Regen &aEnabled"
- if arg 1 is "disable":
- if {oreregen} is false:
- send "&8(&a&lOre&8) &7Ore Regen already &cDisabled"
- else:
- set {oreregen} to false
- send "&8(&a&lOre&8) &7Ore Regen &cDisabled"
- if arg 1 is not "enable" or "disable":
- send "&8(&a&lOre&8) &a/Ore &7<enable/disable>"
- command /fix [<text>]:
- trigger:
- if player has permission "lot.fix":
- if arg 1 is not set:
- message "&a&m-------------------&7 Fix Help &a&m-------------------"
- message "&7&l > &a/Fix Hand &7- &fRepair the item in hand. &f&lCosts: &a$5,000"
- message "&7&l > &a/Fix All &7- &fRepair all items in your inventory."
- message "&a&m----------------------------------------------"
- if arg 1 is set:
- if arg 1 is "hand":
- if player's tool is a Sword or Shovel or Pickaxe or Axe or Hoe or Helmet or Chestplate or Leggings or Boots or Bow or Fishing Rod:
- repair tool of player
- message "&7(!) &aYou have successfully fixed your item in your hand!"
- execute console command "/eco remove %player% 5000"
- else:
- message "&7(!) &cYou cannot repair this item!"
- if arg 1 is "all":
- if {fixall::%player%} is not set:
- set {fixall::%player%} to now
- stop
- set {_fixallTime} to difference between {fixall::%player%} and now
- if {_fixallTime} is less than 24 hours:
- cancel event
- set {_fixallCooldown} to 24 hours
- subtract {_fixallTime} from {_fixallCooldown}
- send "&7(!) &cYou've already used your &f&n/Fix All&7!" to player
- send ""
- send "&7&o(( &aFix All available in &f&n&f%{_fixallCooldown}%&7. &7&o))" to player
- else:
- set {fixall::%player%} to now
- repair slot 0 of player
- repair slot 1 of player
- repair slot 2 of player
- repair slot 3 of player
- repair slot 4 of player
- repair slot 5 of player
- repair slot 6 of player
- repair slot 7 of player
- repair slot 8 of player
- repair slot 9 of player
- repair slot 10 of player
- repair slot 11 of player
- repair slot 12 of player
- repair slot 13 of player
- repair slot 14 of player
- repair slot 15 of player
- repair slot 16 of player
- repair slot 17 of player
- repair slot 18 of player
- repair slot 19 of player
- repair slot 20 of player
- repair slot 21 of player
- repair slot 22 of player
- repair slot 23 of player
- repair slot 24 of player
- repair slot 25 of player
- repair slot 26 of player
- repair slot 27 of player
- repair slot 28 of player
- repair slot 29 of player
- repair slot 30 of player
- repair slot 31 of player
- repair slot 32 of player
- repair slot 33 of player
- repair slot 34 of player
- repair slot 35 of player
- repair helmet slot of player
- repair chestplate slot of player
- repair leggings slot of player
- repair boots slot of player
- message "&7&l(!) &aYou have successfully fixed everything in your inventory!"
- if arg 1 is "reload":
- message "&b&l[FixHand] &bSkript reloading..."
- execute player command "/sk reload FixHand"
- execute console command "/sk reload FixHand"
- wait 3 seconds
- message "&aSuccessfully reloaded!"
- set {fixall::%player%} to 1 minute
- message "&7(!) &aYour Fix All timer has reset."
- message "&"
- message "&7&o (( &aYou can now do the command again! &7&o))"
- if player does not have permission "fix.command":
- message "&7(!) &cYou do not have the permission to execute this command!"
- on chat:
- if {mute.chat} is true:
- if player has permission "Core.chat":
- stop
- if player does not have permission "Core.chat":
- cancel event
- message "&dChat is currently Muted!"
- if {muted::%player%} is true:
- cancel event
- message "&dYou're currently muted!"
- on command:
- loop all players:
- if {cmdspy::%loop-player%} is true:
- if sender is a player:
- if command is not "/sc" or "/msg" or "/r" or "/give" or "/item" or "/i" or "/tp":
- send "&7[&aCommandSpy&7] &7%sender%: &a/%full command%" to loop-player
- command /rename [<text>]:
- aliases: itemname
- permission: lot.rename
- permission message: {@permMessage}
- trigger:
- if arg-1 is not set:
- message "&7> &a/rename &7<text>"
- if arg-1 is set:
- if player is holding air:
- send " &7> &cYou need to hold an item to rename!"
- stop
- else:
- set name of player's tool to "%colored arg 1%"
- message "&7> &aSuccessfully renamed item!"
- command /donate:
- trigger:
- send ""
- send "&cStore: "
- send ""
- command /discord:
- trigger:
- send ""
- send "&bDiscord: "
- send ""
- command /apply:
- trigger:
- send ""
- send "&aApply Here &8:"
- send ""
- command /rules [<number>]:
- trigger:
- if arg-1 isn't set:
- send "&a&m-------------------&7] &aRules ##1 &7[&a&m-------------------"
- send "&a1) &7Respect all players, staff or not! Any comments considered rude will be punished."
- send "&7If you don't agree with a decision made by a staff member, please"
- send "&7contact an administrator via chat or discord! /discord for more info."
- send "&a2) &7Advertising will not be tolerated! Please do not mention any other server."
- send "&a3) &7Do not spam. Our definition of spam is very wide spread!"
- send "&a4) &7Do not cause lag. Any type of lag machine will result in a permanant"
- send "&7w>>"
- send "&a&m-------------&7] &aNext Page: &7/Rules 2 &7[&a&m-------------"
- stop
- if arg-1 is set:
- if arg-1 isn't 2 or 1:
- send "&aRules &8- &7Invalid page! There's only 2 pages of rules."
- stop
- else if arg-1 is 2:
- send "&c"
- send "&a&m-------------------&7] &8Rules ##2 &7[&a&m-------------------"
- send "&a5) &7No use of blacklisted cheats/modifications. If you are"
- send "&7unsure if a mod is allowed, ask a staff member before using it"
- send "&a6) &7No inappropriate or offensive builds! Staff members have"
- send "&7the right to judge if a build is considered offensive!"
- send "&a7) &7Just because a rule is not listed, doesn't mean you can't"
- send "&7be punished for it! If you can't make the right decisions yourself!"
- send "&7a staff member will have to remove you from the server!"
- send "&a&m-------------------&7] &cEND &7[&a&m-------------------"
- send "&c"
- stop
- if arg-1 is 1:
- send "&a&m-------------------&7] &8Rules ##1 &7[&a&m-------------------"
- send "&a1) &7Respect all players, staff or not! Any comments considered rude will be punished."
- send "&7If you don't agree with a decision made by a staff member, please"
- send "&7contact an administrator via chat or discord! /discord for more info."
- send "&a2) &7Advertising will not be tolerated! Please do not mention any other server."
- send "&a3) &7Do not spam. Our definition of spam is very wide spread!"
- send "&a4) &7Do not cause lag. Any type of lag machine will result in a permanant"
- send "&7w>>"
- send "&a&m-------------&7] &aNext Page: &7/Rules 2 &7[&a&m-------------"
- stop
- if arg-2 is 1:
- make player execute command "/rules"
- command /help [<text>]:
- trigger:
- if arg-1 is not set:
- if player does not have permission "help.Donor" or "help.staff":
- send "&c"
- send "&a&m-+-------------&7[ &8Help &7]&a&m-------------+-"
- send "&a/Is &8- &7Use this to get started!"
- send "&a/Kit &8- &7List all available kits!"
- send "&a/Spawn &8- &7Teleports you to spawn!"
- send "&a/Help &8- &7Show this!"
- send "&a/Warp &8- &7List all available warps!"
- send "&a/Bal &8- &7Tells you your balance!"
- send "&a/Baltop &8- &7Shows you whos the richest!"
- send "&a&m-+-------------&7[ &8Help &7]&a&m-------------+-"
- send "&c"
- if player has the permission "help.Donor":
- send "&c"
- send "&a&m-+-------------&7[ &8Help &7]&a&m-------------+-"
- send "&a/Is &8- &7Use this to get started!"
- send "&a/Kit &8- &7List all available kits!"
- send "&a/Spawn &8- &7Teleports you to spawn!"
- send "&a/Help &8- &7Show this!"
- send "&a/Warp &8- &7List all available warps!"
- send "&a/Bal &8- &7Tells you your balance!"
- send "&a/Baltop &8- &7Shows you whos the richest!"
- send "&a&m-+-------------&7[ &8Help &7]&a&m-------------+-"
- send "&c"
- if arg-1 is set:
- stop
- command /chat [<text>] [<text>]:
- permission: lot.chat
- permission message: &7(!) &cYou do have permission to use this command!
- aliases: c
- trigger:
- if arg-1 is not set:
- send "&7> &a/chat &7<&abroadcast&7/&alock&7/&aclear&7/&aspy&7>"
- if arg-1 is not "lock" or "clear" or "spy" or "broadcast":
- send "&7> &a/chat &7<&abroadcast&7/&alock&7/&aclear&7/&aspy&7>"
- if arg-1 is "broadcast":
- if arg-2 is not set:
- send "&7> &a/chat broadcast &7<text>"
- if arg-2 is set:
- send ""
- send "&7[&aBroadcast&7] &a%arg-2%"
- send ""
- stop
- if arg-1 is "clear":
- loop 200 times:
- broadcast " "
- broadcast "&aLotSkyBlock&7: &7Chat has been cleared by &a%player%&7!"
- if arg-1 is "lock":
- if {mute.chat} is false:
- broadcast "&aLotSkyBlock&7: &7The chat has been &clocked &7by &a%player%!"
- set {mute.chat} to true
- loop all players:
- if loop-player has permission "core.staff":
- send "&7[&aChat&7] &7%player% has &clocked &7the chat!" to loop-player
- stop
- if {mute.chat} is true:
- broadcast "&aLotSkyBlock&7: &7The chat has been &aun-locked &7By &a%player%!"
- set {mute.chat} to false
- loop all players:
- if loop-player has permission "Core.staff":
- send "ยง7[&aChat&7] &7%player% has &aunlocked &7the chat!" to loop-player
- stop
- if arg-1 is "spy":
- if {cmdspy::%player%} is false:
- set {cmdspy::%player%} to true
- send "&7[&aCommandSpy&7] &7Command Spy is now &aon&7!"
- stop
- if {cmdspy::%player%} is true:
- set {cmdspy::%player%} to false
- send "&7[&aCommandSpy&7] &7Command Spy is now &coff&7."
- stop
- Command /fly:
- Description: Fly on/off
- Usage: &7> &a/fly
- Executable by: players
- Permission: lot.fly
- permission message: &7> &aYou can buy this command in the server menu!.
- Trigger:
- If {fly.%player%} is not set:
- Send "&7> &aFly Mode &8- &aON" to player
- set player's flight mode to true
- Set {fly.%player%} to true
- Stop
- Send "&7> &aFly Mode &8- &cOFF" to player
- set player's flight mode to false
- Delete {fly.%player%}
- Stop
- command /list:
- aliases: who, online,
- trigger:
- loop all players:
- loop-player has permission "list.staff"
- add loop-player to {_staff::*}
- message "&a&m---------------------------------------"
- message " &aThere are &7%number of all players% &aplayers on the server!"
- message ""
- message " &cStaff&8: &c%{_staff::*}%"
- message "&a&m---------------------------------------"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement