Solved New to Skript and trying to make an XpPaper command

  • 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!

Status
Not open for further replies.

Goose

Supporter
Nov 23, 2019
439
33
28
Hi, I am trying to make a command called XpPaper which gives you a piece of paper and when you right click it gives you 5 levels of experience. I am very new to Skript and could use help, by chance could you guys tell me how to make this and also recommend me any good people to go to for learning Skript?

]I just finished the code and I ask if I did anything wrong, here it is:

# code is for xppaper
command /XpPaper
trigger
give paper named "&c[&fXP PAPER&c]" to player
on right click with paper
if name of tool of player is "&c[&fXP PAPER&c]"
trigger
execute console command "/xp give %player% 5l"
 
Last edited:
code_language.skript:
command /xppaper:
    trigger:
        if player has permission "xppaper.use":
            give a paper named "&c[&fXP PAPER&c]" to player

on right click with paper:
    if name of player's tool is "&c[&fXP PAPER&c]":
        add 5 to xp of player
Thank you so much!
 
Status
Not open for further replies.