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
 Share

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"

  

[VIP] 12/26/20 - 10/27/2021
[PRO] 12/27/21 - 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
 Share



×
×
  • Create New...