#How to do it?

1 messages · Page 1 of 1 (latest)

tight plover
#

You cand do this multiple ways. You can use permissions that you add and remove for each item, you can use meta values, etc.

What will be the same for all ways though is that you will need 2 items in the same slot, with priorities and view requirements.

sour owl
tight plover
#
items:
  dirt:
    slot: 0
    priority: 1
    display_name: '&eDIRT'
    click_commands:
    - '[console] lp user %player_name% permission set clicked.dirt'
    - '[refresh]'
    view_requirement:
      requirements:
        clicked_dirt:
          type: '!has permission'
          permission: 'clicked.dirt'

  diamond:
    slot: 0
    priority: 2
    display_name: '&eDIAMOND'
    click_commands:
    - '[console] lp user %player_name% permission unset clicked.dirt'
    - '[refresh]'

It would look something like this @sour owl

sour owl
#

👀 🧐

sour owl
#

I will try to do it now.

sour owl
#

this is not working for some reason

#

For some reason permission is not being granted.

wise rock
#

Update became outdated

#

I see update doesn't work but refresh does

tight plover
#

Oh yeah. Update isn't outdated. It was never an action.

sour owl
#

I don't know. I use deluxemenus 1.12.0

tight plover
#

Why not 1.14.0?

sour owl
#

no 1.12.0 and minecraft 1.13.2

#

1.14.0 work in 1.13.2?

tight plover
#

Yes it will work with minecraft 1.13.2

#

also I've changed the example I gave above

#

and you need luckperms for it to work

#

luckperms and vault

sour owl
#

okey second i update server and test

tight plover
#

If you have a different permission plugin than luckperms you will need to change the command in my example to whatever it is for your plugin

sour owl
#

i use luckyperms

#

no I dropped deluxemenus 1.14.0 in server and it doesn't work, it doesn't even load

#

after these changes it still doesn't work for some reason

tight plover
#

Ok, what doesn't work?

sour owl
#

everything. when I click, nothing changes, and after manually issuing the permit. the land still hasn't changed to diamond

tight plover
#

Are you OP when testing the menu?

sour owl
#

yes

tight plover
#

That might be your problem

#

OP players have all permissions by default

sour owl
#

without op it still doesn't work

tight plover
#

Do you have LuckPerms installed?

sour owl
#

yes

tight plover
#
items:
  dirt:
    slot: 0
    priority: 1
    display_name: '&eDIRT'
    click_commands:
    - '[console] lp user %player_name% permission set clicked.dirt'
    - '[message] &aClicked!'
    - '[refresh]'
    view_requirement:
      requirements:
        clicked_dirt:
          type: '!has permission'
          permission: 'clicked.dirt'
    click_requirement:
      requirements:
        clicked_dirt:
          type: '!has permission'
          permission: 'clicked.dirt'
          deny_commands:
          - '[message] &cCould not click!'

  diamond:
    slot: 0
    priority: 2
    display_name: '&eDIAMOND'
    click_commands:
    - '[console] lp user %player_name% permission unset clicked.dirt'
    - '[refresh]'
#

Try this and tell me what message is shown in chat?

#

when you click the dirt

sour owl
#

good second

#

none

tight plover
#

Then you've probably misformatted something. I want you to copy your menu and put it in https://paste.helpch.at and then send the link here

sour owl
#

ready

#

I haven't configured anything yet, I want to figure it out and then do what I want.

wise rock
tight plover
# wise rock alot of menus setups use update for some reason

There is an update feature but it isn't an action. It would look something like update: true and then only some parts of the menu update and it does this automatically every 10 seconds (configurable value). But it only updates item display names and item lores.

tight plover
wise rock
sour owl
#

Okay, sorry I disappeared yesterday.

#

Are there any other menus?

tight plover
sour owl
#

yes absolutely. I don't know it doesn't work for me

tight plover
#

Can you execute /papi dump and send the generated link here?

sour owl
#

okey

#

by the way, to configure this menu, I use a test server (it's not the one on which I've done everything in the whole time) so I can reset anything

tight plover
#

Can you update DeluxeMenus and PlaceholderAPI to the latest versions? You are using old ones

sour owl
#

and placholder api i can update

#

deluxemenus 1.12.0 glows red and the new one doesn't even load

tight plover
#

Umm, can you send the startup logs when you try the latest version?

sour owl
#

okey second

#

Strangely, 1.12.0 stopped working for me, although everything was fine last time.

hazy sandalBOT
# sour owl https://pastebin.com/0dedTyUf
Possible Solution Found:

The plugin (or program) you are trying to use was compiled using a newer Java version than the one you using.
To find what version you need, start from 52 which is Java 8 and for example, 60 is Java 16. (8 + 8 = 16 => 52 + 8 = 60)

sour owl
tight plover
# hazy sandal

@sour owl, DeluxeMenus is not starting because your server runs java 8 but it requires java 11 now. Is there a reason you're sticking with java 8?

sour owl
#

As far as I know 1.13 works on this version. Can it work on a newer one?

#

and will everything be okay. I don't know

tight plover
sour owl
#

It definitely won't break or anything.

#

can it support a maximum of 11 or more?

tight plover
#

Java is backwards compatible 99.99% of time. I can tell you that Paper and DeluxeMenus will not break. I can't promise you other plugins won't but I have never heard of a plugin that broke like that unless it intentionally doesn't support a higher java version.

#

I personally would suggest java 11 and not higher for your server version

sour owl
#

okay, thank you very much

#

now I need to remember or watch the guide on how to change the version

tight plover
#

Probably watch a tutorial if you're not sure. There are plenty of those

sour owl
#

yes I am looking

#

this will take a long time

tight plover
#

If you want, I can try to guide you step by step. It should not take more than 5-10 minutes at most

sour owl
#

Now I'm trying to do it with chatgpt because in my language the guides are only through the website and there with one button change Java 8 to Java 11

tight plover
#

Are you doing it on linux or on windows?

sour owl
#

windows

tight plover
#

Download it from here

#

"Download MSI"

#

or .msi

#

it will download an executable that will let you install easily with a few clicks

sour owl
#

What should I press here?

tight plover
#

make sure Set or override JAVA_HOME is also selected

#

and then press next

sour owl
#

last time I used .zip💀

#

1 or 2

tight plover
#

1

sour owl
#

javasoft no?

tight plover
#

no

sour owl
#

What should I change here?

tight plover
#

I think it will work fine now

#

it should be using java 11 when you start the server

sour owl
#

ok I'll try now

#

System Info: Java 11 (OpenJDK 64-Bit Server VM 11.0.26+4) Host: Windows 11 10.0 (amd64)
Loading libraries, please wait...

he used java 11😆

#

wow it work

#

:)

#

thank you very very very much!)

#

Now I'll try what I started it for.

#

oh my god finally I was able to do it! thank you!!!!

#

🩶

tight plover
#

The menu works?

sour owl
#

yes

#

Java turned out to be a traitor

tight plover
#

Well, it was the older plugin version at fault but I'm happy you got it to work now

sour owl
#

I also thank you very much.

#

java was the imposter