Jump to content

Paper ranks.


Skray

Recommended Posts

I need a script were if I right click with a paper named VIP you get the VIP rank. (I am using permissionEx)

Something like this: (But I don't think this work)

on rightclick with paper:
    if name of tool of player is "&2&lVIP RANK":
        execute console command "/pex user %player% group set VIP"
        remove paper from player
  • Like 1
Link to comment
Share on other sites

Nah, that should work.

But it should be 

 

remove 1 piece of paper from the player


And also it needs to be:
 

on right click:
	player's held item is a piece of paper

 

Edited by rosathorn

rose city STICKER

RosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaR

i code, animate, develop, UI design, learn, and adapt, as well as make servers, of course

💐Joined Minehut sometime in 2014
💐VIP sometime in 2018
💐Legend in January 2021
💐Helper on 4/11/2021
💐♥ (Retired) on 5/17/2021
💐 Moderator on 8/18/2023

Link to comment
Share on other sites

So it should be like this?

on rightclick:
    player's held item is a piece of paper
    if name of tool of player is "&2&lVIP RANK":
        execute console command "/pex user %player% group set VIP"
        remove 1 piece of paper from the player
  •  
Link to comment
Share on other sites

6 hours ago, Skray said:

So it should be like this?


on rightclick:
    player's held item is a piece of paper
    if name of tool of player is "&2&lVIP RANK":
        execute console command "/pex user %player% group set VIP"
        remove 1 piece of paper from the player

You can just do this:

on right click with paper:
	name of player's item is "&2&lVIP RANK"
	make console execute command "/pex user %player% group set VIP"
	remove player's item from player's inventory

Hope this helps!

  • Thanks 1

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

40 minutes ago, BanditEagle said:

You can just do this:


on right click with paper:
	name of player's item is "&2&lVIP RANK"
	make console execute command "/pex user %player% group set VIP"
	remove player's item from player's inventory

Hope this helps!

Thank you! 😄

Link to comment
Share on other sites

7 minutes ago, Skray said:

Thank you! 😄

No problem! Happy to be able to help!

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

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