Jump to content

Commands but in chat <FULLY CUSTOMIZABLE>


EmptyRooms_

Recommended Posts

16 hours ago, EmptyRooms_ said:

on chat:

 if message is "!info":

 send "&7Hi! This server is <paste description here>"

 

on chat:

 if message is "!rules":

 send "&7Rules"

 send "&7rule 1"

 send "&7rule 2"

should indent it, as well as cancel the chat event so it acts more like a command. Here's something i made quickly.

on chat:
	set {_msg::*} to message split at ""
	if {msg::1} is "!":
		cancel event
		set {_msg::*} to message split at " "
		if {_msg::1} is "!hello":
			send "Hello There!"
		else if {_msg::1} is "!rules":
			send "1. No Greifing%nL%2. No Swearing%nL%3. No Hacking"
		else if {_msg::1} is "!help":
			send "Help Page:%nL%!hello - Say Hello!%nL%!rules - Lists Server Rules"
		else:
			send "Unknown Command! Type !help for a list of commands."

 

Edited by AgentGamerPro

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Lifestealed | Minecraft Servers
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - Present

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...