options: #==================================================# # Project: COMOTD # # Author: ColaCinema© (Youtube, Twitter.) # Minecraft Version: 1.9+ # Date: 3-3-2018 # Option: Ver: 1.0 perm: motd.admin.use Nothing: There are no updates today Logo: &c&l(&r!&c&l)&r noperm: Sorry, but you don't have permission to do that. # Skript Function: When players join they can see if there is a update on your server. # WARNING: Please do not edit anything below this box! # Disclaimer: You are allowed to edit the options in this box. # Info: If you need help with this please contact me (Private message me) on Discord. #==================================================# on join: wait 10 ticks if {linecheck.1} is true: send "&7&m-------------------------------------------" send "" if {linecheck.1} is true: send " &8- &r%{line1::*}%" if {linecheck.2} is true: send " &8- &r%{line2::*}%" if {linecheck.3} is true: send " &8- &r%{line3::*}%" if {linecheck.4} is true: send " &8- &r%{line4::*}%" if {linecheck.5} is true: send " &8- &r%{line5::*}%" send "" send "&7&m-------------------------------------------" stop else: send "&7&m-------------------------------------------" send "" send " &8-&r {@Nothing}." send "" send "&7&m-------------------------------------------" stop command /motd [] []: permission: {@perm} permission message: {@Logo} {@noperm} trigger: if arg 1 is not set: send "&lMOTD help menu." send "" send " /Motd show &c-&7 Get a preview of the MOTD." send " /Motd clear (1>5) &c-&7 Clear one of the lines." send " /Motd (1>5) (Message) &c-&7 Set a announccement." stop if arg 1 is "show": if arg 2 is not set: if {linecheck.1} is true: send "&7&m-------------------------------------------" send "" if {linecheck.1} is true: send "&71 &8- &r%{line1::*}%" if {linecheck.2} is true: send "&72 &8- &r%{line2::*}%" if {linecheck.3} is true: send "&73 &8- &r%{line3::*}%" if {linecheck.4} is true: send "&74 &8- &r%{line4::*}%" if {linecheck.5} is true: send "&75 &8- &r%{line5::*}%" send "" send "&7&m-------------------------------------------" stop else: send "&7&m-------------------------------------------" send "" send " &8-&r {@Nothing}." send "" send "&7&m-------------------------------------------" stop if arg 1 is set: if arg 1 is "1" or "2" or "3" or "4" or "5": if arg 2 is set: wait 1 ticks set {line%arg-1%::*} to "%colored arg-2%" set {linecheck.%arg-1%} to true send "{@Logo} line %arg-1% set to:" send "%colored arg-2%" send "&7&m-------------------------------------------" send "" if {linecheck.1} is true: send " &8- &r%{line1::*}%" if {linecheck.2} is true: send " &8- &r%{line2::*}%" if {linecheck.3} is true: send " &8- &r%{line3::*}%" if {linecheck.4} is true: send " &8- &r%{line4::*}%" if {linecheck.5} is true: send " &8- &r%{line5::*}%" send "" send "&7&m-------------------------------------------" if arg 1 is "clear": if arg 2 is "1" or "2" or "3" or "4" or "5": send "{@Logo} Line %arg-2% is now removed." if {linecheck.%arg-2%} is true: set {linecheck.%arg-2%} to false clear {line%arg-2%::*} stop