Jump to content

How do I make a skript where I right click a inamed paper


Recommended Posts

I am trying to find a skript where if you right click a specific item like a inamed paper it would perform a console command that would give that player a specific group so that I can create a prefix shop and sell prefixes on my box server but Ive tried for hours and no luck so far. it also doesnt help that I dont know much about skript 😕

Link to comment
Share on other sites

6 hours ago, Johnny213isme said:

I am trying to find a skript where if you right click a specific item like a inamed paper it would perform a console command that would give that player a specific group so that I can create a prefix shop and sell prefixes on my box server but Ive tried for hours and no luck so far. it also doesnt help that I dont know much about skript 😕

on right click with a paper:
   execute command "/lp user %player% parent set (rank)"
   send "&a&lYou now have (rank) rank!"
   execute command "/clear %player% paper 1" 

this works if your using luckperms and i think you might need essentialsx if it doesn't work without it

Edited by HaywireYT_
Link to comment
Share on other sites

1 hour ago, HaywireYT_ said:

on right click with a paper:
   execute command "/lp user %player% parent set (rank)"
   send "&a&lYou now have (rank) rank!"
   execute command "/clear %player% paper 1" 

this works if your using luckperms and i think you might need essentialsx if it doesn't work without it

I have both lucky perms and essentialsx but I am wondering can that be used to have several papers but each one does a different rank?

Link to comment
Share on other sites

On 3/17/2021 at 4:54 PM, Johnny213isme said:

I am trying to find a skript where if you right click a specific item like a inamed paper it would perform a console command that would give that player a specific group so that I can create a prefix shop and sell prefixes on my box server but Ive tried for hours and no luck so far. it also doesnt help that I dont know much about skript 😕

on rightclick with paper:
    if name of tool of player is "THE GROUP YOU WANT TO GIVE":
        execute console command "/lp user %player% parent set <group>"
        remove paper from player

DONT FORGET TO RENAME THE PAPER TO THE CERTAIN GROUP YOU WANT Example:

 Fighter: "if name of tool of player is "Fighter""

reply to me if ur facing a problem

 

Edited by iiFlameYT

 

 

Link to comment
Share on other sites

  • 1 month later...

🔐 Topic locked.

Please do not reply on threads that have been inactive for over a month.

Discord - tarna256

In-game name - _Tarna_

Website - https://tarna.dev
Paste Site: https://paste.tarna.dev

---------------------------------------------------------

[VIP] - 7/27/2020

Community Support - 7/8/20 - 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - 5/17/21

❤️ - 5/17/21 - 12/20/22

Moderator - 12/20/22 - now

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...