Jump to content

I need help with a skript im making


Recommended Posts

command /hug [<player>]:
 trigger:
  if arg-1 is a player:
   broadcast "&b&l%player% &dHugged &b&l%arg-1%"
  else:
   send "&c&lSpecify a player."
if %arg-1% is %user%:
   send "&c&lYou cannot hug yourself"

 

Idk why this wont work please help
  
 
 

Link to comment
Share on other sites

Just now, nolando09 said:

command /hug [<player>]:
 trigger:
  if arg-1 is a player:
   broadcast "&b&l%player% &dHugged &b&l%arg-1%"
  else:
   send "&c&lSpecify a player."
if %arg-1% is %user%:
   send "&c&lYou cannot hug yourself"

 

Idk why this wont work please help
  
 
 

It works but i want to make it so you cant /hug yourself and it would help with lots of my other skripts

Link to comment
Share on other sites

command /hug [<player>]:
  trigger:
	if arg-1 is a player:
  		broadcast "&6%player%&f hugged &6%arg-1%"
  	else:
  		send "&f%arg-1%&6 has to be a player!"
  	if arg-1 is player:
		send "&cYou cannot hug yourself!"

This should work

I used to play Minehut I guess?
Yeah, I still watch the forums for some reason. (15/5/2023)
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...