Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # core.sk - by im_a_waffle1 with some contributions from the xSkript community
- # CONFIG
- options:
- # The message prefix
- prefix: &7[&6core.sk&7]
- # The balance the player starts out with
- beginnerbal: 100
- # The basic player format
- format: &7%player%&r:&7 %message%
- # The operator format
- opformat: &6ADMIN&7 %player%&r: %message%
- # The premium player format
- premiumformat: &6PREMIUM&7 %player%&r: %message%
- # The "helper" format
- helperformat: &3HELPER&7 %player%&r: %message%
- # DO NOT EDIT VERSION!
- version: N/A
- # Join, Leave, and First Join
- firstjoinannounce: &6%player%&7 joined for the first time!
- joinannounce: &6%player%&7 joined the server!
- leaveannounce: &6%player%&7 left the server ;-;
- # "Permission Denied" message
- permdenied: &4You do not have permission to run this command. If this is a mistake, contact a server administrator.
- # core.sk documentation (/help)
- command /help <integer=1> [<integer>]:
- trigger:
- if arg-1 is 1:
- send "&6-----(core.sk {@version})-----"
- send "&6by im_a_waffle1"
- send "&eHELP PAGE %arg-1%/3"
- send "&5(Optional) <Required>"
- send "&2/balance (player) - Auto-setting is currently broken, so you will need to set this yourself."
- send "&2/setbalance <player> <amount> - Manually set the balance of someone."
- send "&2/gms - Turns your gamemode into survival"
- send "&2/gmc - Turns your gamemode into creative"
- send "&2/gma - Turns your gamemode into adventure"
- send "&2/gmsp - Turns your gamemode into spectator"
- send "&6/help 2 to go to the next page"
- send "&6-----(core.sk {@version})-----"
- if arg-1 is 2:
- send "&6-----(core.sk {@version})-----"
- send "&6by im_a_waffle1"
- send "&eHELP PAGE %arg-1%/3"
- send "&5(Optional) <Required>"
- send "&2/broadcast (text) - Get the word out :v"
- send "&2/spawn - Teleports you to spawn if the spawn is set."
- send "&2/setspawn - Sets the spawn location"
- send "&2/kick <player> (reason) - Kicks a player from the server"
- send "&2/warn <player> (reason) - Warns a player"
- send "&2/ban <player> (reason) - Bans a player from the server. Currently kind of unstable."
- send "&6/help 3 to go to the next page"
- send "&6-----(core.sk {@version})-----"
- if arg-1 is 3:
- send "&6-----(core.sk {@version})-----"
- send "&6by im_a_waffle1"
- send "&eHELP PAGE %arg-1%/3"
- send "&5(Optional) <Required>"
- send "&2/unban <player> (reason) - Unbans a player from the server"
- send "&2/mute <player> (reason) - Mutes a player, so they can't talk"
- send "&2/unmute <player> (reason) - Unmutes a player"
- send "&2/invsee <player> - Looks inside a player's inventory."
- send "&2/enderchest (player) - Looks inside your ender chest (If player is set you can look inside their ender chest)"
- send "&2&oA future command will go here..."
- send "&6Looks like you're done reading the commands! You'll be awesome at this :D"
- send "&6-----(core.sk {@version})-----"
- # Economy
- command /balance [<player>]:
- aliases: /bal
- trigger:
- if arg-1 is set:
- if arg-1 is not "%executor%":
- send "{@prefix} &7%arg-1%'s balance: &c$%{balance::%arg-1%'s uuid}%" to executor
- if arg-1 is "%executor%":
- send "{@prefix} &7Your balance: &c$%{balance::%executor%'s uuid}%" to executor
- if arg-1 is not set:
- send "{@prefix} &7Your balance: &c$%{balance::%executor%'s uuid}%"
- command /setbalance [<player>] [<number>]:
- permission: core.balance.set
- permission message: {@prefix} {@permdenied}
- aliases: /setbal
- trigger:
- if arg-1 is set:
- if arg-1 is not "%executor%":
- if arg-2 is not set:
- send "{@prefix} &rCorrect Usage: /setbalance [<player>] [<number>]" to executor
- if player has permission "core.balance.set.others":
- set {balance::%arg-1%'s uuid} to arg-2
- send "{@prefix} &7%arg-1%'s balance is now &c$%{balance::%arg-2%'s uuid}%" to executor
- if arg-1 is "%executor%":
- if arg-2 is not set:
- send "{@prefix} &rCorrect Usage: [<player>] [<number>]" to executor
- set {balance::%arg-1%'s uuid} to arg-2
- send "{@prefix} &7%arg-1%'s balance is now &c$%{balance::%executor%'s uuid}%" to executor
- if arg-1 is not set:
- send "{@prefix} &rCorrect Usage: /setbalance [<player>] [<number>]" to executor
- on join:
- if {balance::%player's uuid%} is not set:
- set {balance::%player's uuid%} to 0
- wait 1 tick
- add {@beginnerbal} to {balance::%player's uuid%}
- # Chat Manager
- on chat:
- cancel event
- if {%player's uuid%::ismuted} is false:
- if player is op:
- broadcast "{@opformat}"
- if player is not op:
- if player does not have permission "core.prefix.helper" or "core.prefix.premium":
- broadcast "{@format}"
- if player has permission "core.prefix.premium":
- if player does not have permission "core.prefix.helper":
- broadcast "{@premiumformat}"
- if player has permission "core.prefix.helper":
- broadcast "{@helperformat}"
- if {%player's uuid%::ismuted} is not set:
- if player is op:
- broadcast "{@opformat}"
- if player is not op:
- if player does not have permission "core.prefix.helper" or "core.prefix.premium":
- broadcast "{@format}"
- if player has permission "core.prefix.premium":
- if player does not have permission "core.prefix.helper":
- broadcast "{@premiumformat}"
- if player has permission "core.prefix.helper":
- broadcast "{@helperformat}"
- # Join/Leave Messages
- on join:
- set join message to "{@joinannounce}"
- on first join:
- set join message to "{@firstjoinannounce}"
- on quit:
- set quit message to "{@leaveannounce}"
- # Gamemode
- command /gms:
- permission: core.gamemode.survival
- permission message: {@prefix} {@permdenied}
- trigger:
- send "{@prefix} &7Your gamemode is now survival." to player
- set player's gamemode to survival
- command /gmc:
- permission: core.gamemode.creative
- permission message: {@prefix} {@permdenied}
- trigger:
- send "{@prefix} &7Your gamemode is now creative." to player
- set player's gamemode to creative
- command /gma:
- permission: core.gamemode.adventure
- permission message: {@prefix} {@permdenied}
- trigger:
- send "{@prefix} &7Your gamemode is now adventure." to player
- set player's gamemode to adventure
- command /gmsp:
- permission: core.gamemode.spectator
- permission message: {@prefix} {@permdenied}
- trigger:
- send "{@prefix} &7Your gamemode is now spectator." to player
- set player's gamemode to spectator
- # Broadcast
- command /broadcast [<text>]:
- permission: core.broadcast
- permission message: {@prefix} {@permdenied}
- aliases: /bc
- trigger:
- broadcast "&7"
- broadcast "{@prefix} &7>> &3%arg-1%"
- broadcast "&7"
- # Spawn
- command /spawn:
- trigger:
- teleport player to {worldspawn}
- send "{@prefix} &7You have been teleported to spawn." to player
- command /setspawn:
- permission: core.setspawn
- permission message: {@prefix} {@permdenied}
- trigger:
- set {worldspawn} to player's position
- send "{@prefix} &7The spawn has been set." to player
- on join:
- teleport player to {worldspawn}
- on death:
- teleport player to {worldspawn}
- # Staff Commands // Punishment
- command /kick [<player>] [<text>]:
- permission: core.punishments.kick
- permission message: {@prefix} {@permdenied}
- trigger:
- if arg-1 is not set:
- send "Who are you gonna kick?"
- if arg-1 is set:
- if arg-1 does not have permission "core.punishments.kick.exempt":
- kick arg-1
- broadcast "{@prefix} &6%executor%&a has kicked&6 %arg-1%&a for&6 %arg-2%"
- else:
- send "{@prefix} &7You can't kick %arg-1%!"
- command /warn [<offlineplayer>] [<text>]:
- permission: core.punishments.warn
- permission message: {@prefix} {@permdenied}
- trigger:
- if arg-1 is not set:
- send "choose a player to warn."
- if arg-1 is set:
- if arg-1 does not have permission "core.punishments.warn.exempt":
- broadcast "{@prefix} &6%executor%&a has warned&6 %arg-1%&a for&6 %arg-2%"
- else:
- send "{@prefix} &7You can't warn %arg-1%!"
- command /ban [<offlineplayer>] [<text>]:
- permission: core.punishments.ban
- permission message: {@prefix} {@permdenied}
- trigger:
- if arg-1 is not set:
- send "choose a player to ban."
- if arg-1 is set:
- if {%arg-1's uuid%::isbanned} is not true:
- if arg-1 does not have permission "core.punishments.ban.exempt":
- set {%arg-1's uuid%::isbanned} to true
- kick arg-1
- broadcast "{@prefix} &6%executor%&a has banned&6 %arg-1%&a for&6 %arg-2%"
- else:
- send "{@prefix} &7You can't ban %arg-1%!"
- else:
- send "{@prefix} &7%arg-1% is already banned!"
- command /unban [<offlineplayer>] [<text>]:
- permission: core.punishments.ban.remove
- permission message: {@prefix} {@permdenied}
- trigger:
- if arg-1 is not set:
- send "choose a player to unban."
- if arg-1 is set:
- if {%arg-1's uuid%::isbanned} is set:
- if {%arg-1's uuid%::isbanned} is false:
- send "{@prefix} &7This player isn't banned!"
- if {%arg-1's uuid%::isbanned} is true:
- set {%arg-1's uuid%::isbanned} to false
- broadcast "{@prefix} &6%executor%&a has unbanned&6 %arg-1%&a for&6 %arg-2%"
- else:
- send "{@prefix} &7%arg-1% isn't banned!"
- command /mute [<offlineplayer>] [<text>]:
- permission: core.punishments.mute
- permission message: {@prefix} {@permdenied}
- trigger:
- if arg-1 is not set:
- send "choose a player to mute."
- if arg-1 is set:
- if {%arg-1's uuid%::ismuted} is not true:
- if arg-1 does not have permission "core.punishments.mute.exempt":
- set {%arg-1's uuid%::ismuted} to true
- broadcast "{@prefix} &6%executor%&a has muted&6 %arg-1%&a for&6 %arg-2%"
- else:
- send "{@prefix} &7You can't mute %arg-1%!"
- else:
- send "{@prefix} &7This player is already muted!"
- command /unmute [<offlineplayer>] [<text>]:
- permission: core.punishments.mute.remove
- permission message: {@prefix} {@permdenied}
- trigger:
- if arg-1 is not set:
- send "choose a player to unmute."
- if arg-1 is set:
- if {%arg-1's uuid%::ismuted} is set:
- if {%arg-1's uuid%::ismuted} is false:
- send "{@prefix} &7This player isn't muted!"
- if {%arg-1's uuid%::ismuted} is true:
- set {%arg-1's uuid%::ismuted} to false
- broadcast "{@prefix} &6%executor%&a has unmuted&6 %arg-1%&a for&6 %arg-2%"
- else:
- send "{@prefix} &7This player isn't muted!"
- on join:
- if {%player's uuid%::isbanned} is true:
- kick player
- set join message to ""
- on chat:
- if {%player's uuid%::ismuted} is true:
- cancel event
- send "{@prefix} &6You have been muted!"
- # Other stuff
- command /invsee [<offlineplayer>]:
- permission: core.invsee
- permission message: {@prefix} {@permdenied}
- trigger:
- if arg-1 is not set:
- send "choose an player to view their inventory"
- if arg-1 is set:
- open arg-1's inventory to executor
- command /enderchest [<player>]:
- aliases: /enderc, /echest, /ec
- trigger:
- if arg-1 is not set:
- open executor's ender chest to executor
- if arg-1 is set:
- if executor has permission "core.enderchest.others":
- open arg-1's ender chest to executor
- else:
- send "{@prefix} {@permdenied}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement