PLEASE HELP

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

SoyJamess

Member
Apr 27, 2023
3
0
1
25
Hi, I have this code here


command /passamontagna [<string>]:
permission: maschera.give
permission message: &cNon hai il permesso!.
usage: &cParametri errati.
trigger:
if arg-1 is not set:
send ""


if arg-1 is set:
if arg-1 is "get":
give feather named "&9Passamontagna" with custom model data 57 to player
send "&aHai ricevuto un passamontagna"


on right click with feather:
if player is holding feather named "&9Passamontagna":
if player's helmet is air:
set player's helmet to player's tool
else:
set player's helmet to player's tool
set player's tool to air



on chat:
if player's helmet is feather named "&9Passamontagna":
set chat format to "&8Anonimo »&b %message%"



ONLY THAT THERE IS A PROBLEM, WHEN I WEAR "feather" named "&9Passamontagna" THE SERVER AUTOMATICALLY WITHOUT ME DOING ANYTHING IT DISCONNECTS CLOSING

ONLY THAT THERE IS A PROBLEM, WHEN I WEAR "feather" named "&9balaclava" THE SERVER AUTOMATICALLY WITHOUT ME DOING ANYTHING IT DISCONNECTS CLOSING
 
Hi, I have this code here


command /passamontagna [<string>]:
permission: maschera.give
permission message: &cNon hai il permesso!.
usage: &cParametri errati.
trigger:
if arg-1 is not set:
send ""


if arg-1 is set:
if arg-1 is "get":
give feather named "&9Passamontagna" with custom model data 57 to player
send "&aHai ricevuto un passamontagna"


on right click with feather:
if player is holding feather named "&9Passamontagna":
if player's helmet is air:
set player's helmet to player's tool
else:
set player's helmet to player's tool
set player's tool to air



on chat:
if player's helmet is feather named "&9Passamontagna":
set chat format to "&8Anonimo »&b %message%"



ONLY THAT THERE IS A PROBLEM, WHEN I WEAR "feather" named "&9Passamontagna" THE SERVER AUTOMATICALLY WITHOUT ME DOING ANYTHING IT DISCONNECTS CLOSING

ONLY THAT THERE IS A PROBLEM, WHEN I WEAR "feather" named "&9balaclava" THE SERVER AUTOMATICALLY WITHOUT ME DOING ANYTHING IT DISCONNECTS CLOSING
Use code blocks
upload_2023-4-28_20-50-37.png
 
Code:
Hi, I have this code here


command /passamontagna [<string>]:
permission: maschera.give
permission message: &cNon hai il permesso!.
usage: &cParametri errati.
trigger:
if arg-1 is not set:
send ""


if arg-1 is set:
if arg-1 is "get":
give feather named "&9Passamontagna" with custom model data 57 to player
send "&aHai ricevuto un passamontagna"


on right click with feather:
if player is holding feather named "&9Passamontagna":
if player's helmet is air:
set player's helmet to player's tool
else:
set player's helmet to player's tool
set player's tool to air



on chat:
if player's helmet is feather named "&9Passamontagna":
set chat format to "&8Anonimo »&b %message%"
 
Code:
Hi, I have this code here


command /passamontagna [<string>]:
permission: maschera.give
permission message: &cNon hai il permesso!.
usage: &cParametri errati.
trigger:
if arg-1 is not set:
send ""


if arg-1 is set:
if arg-1 is "get":
give feather named "&9Passamontagna" with custom model data 57 to player
send "&aHai ricevuto un passamontagna"


on right click with feather:
if player is holding feather named "&9Passamontagna":
if player's helmet is air:
set player's helmet to player's tool
else:
set player's helmet to player's tool
set player's tool to air



on chat:
if player's helmet is feather named "&9Passamontagna":
set chat format to "&8Anonimo »&b %message%"
whats the error you get in console? when the server crashes/kicks you out?