Jump to content

I need help with a plugin i thought i was doing good, i was following a tutorial for these, and i have no idea what went wrong in it please help


Mwammy

Recommended Posts

video i used for tutorial: 

command /relore [<text>]:
    permission: skript.relore
    permission message: You do not have the permission to use this command!
    trigger:
        if arg 1 is not set:
            send "§4usage: /relore <text>"
        else:
            if player's is air:
                send "§4You need to hold an item to relore!"
            else:
                set lore of player's tool to colored arg 1
                send "§6Your item has been set to: %colored arg-1%"

command /enchant [<enchantment type>]
    permission: skript.enchant
    permission message: You do not have the permission to use this command!
    trigger:
        if arg 1 is not set:
            send "§4usage: /enchant <enchantment>"
        else:
            if player's tool is air:
                send "§4You need to hold an item to enchant!"
            else:
                enchant player's tool with arg 1
                sebd "§2Your item has been enchanted!"

Link to comment
Share on other sites

On 1/8/2022 at 7:34 AM, Mwammy said:

video i used for tutorial: 

command /relore [<text>]:
    permission: skript.relore
    permission message: You do not have the permission to use this command!
    trigger:
        if arg 1 is not set:
            send "§4usage: /relore <text>"
        else:
            if player's is air:
                send "§4You need to hold an item to relore!"
            else:
                set lore of player's tool to colored arg 1
                send "§6Your item has been set to: %colored arg-1%"

command /enchant [<enchantment type>]
    permission: skript.enchant
    permission message: You do not have the permission to use this command!
    trigger:
        if arg 1 is not set:
            send "§4usage: /enchant <enchantment>"
        else:
            if player's tool is air:
                send "§4You need to hold an item to enchant!"
            else:
                enchant player's tool with arg 1
                sebd "§2Your item has been enchanted!"

3 errors to fix:


Line 8: "if player's is air" should be "if player's tool is air"

Line 14: missing a ":" at the end

Line 25: the "send" was mistyped as "sebd"

 

 

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...