Question/Issue about Items.yml Commands
Zenoxez opened this issue ยท 9 comments
Hello,
I know you may not want to be bothered with this, as it only partially has to do with your plugin. However, I am completely stumped here and I think my problem may have something to do with ItemJoin.
So, I am using ItemJoin V 2.3. I am also using a plugin called CustomPermissionMessages.
CustomPermissionMessages allows me to change the message a player gets when he is denied access to a command. Currently, when you type /fly, and you do not have permission for the command, a custom message is displayed. I have an ItemJoin Item (Slot 1) set up to execute the command /fly by the player. However, when you click on the item, the custom message is not displayed, the default one is.
This is very confusing to me as I figured executing a command by a player with ItemJoin would be just like the player typing /fly themselves. However, it can't be as I'm getting different responses.
Here are some of my files:
ItemJoin Config.yml
ItemJoin Items.yml
CustomPermissionMessages Config
If you can't or won't help, I understand.
Thanks a lot,
- Zenoxe
Sorry, but I am not understanding. So what you are saying is the player is executing /fly and is not having permissions? If you want it to bypass permissions issue you use console: fly %player%
This would make console execute /fly RockinChaos
Is this what you are looking for? Meh sorry I am a little confused. By the way I am always happy to help!
Thanks for the reply.
I want the player to basically execute the /fly command themselves when they click on the item.
This is how the Items.yml looks:
commands:
- 'player: fly'
When the player clicks the item does the exact same thing happen as if they were actually typing /fly?
the executor (player: and console:) are represented as how they will be ran. player: forces the player to run the command. console: forces the console to run the command. That's why there are variables such as %player% so console can find said player. So console could execute /fly %player% === RockinChaos.
Does this solve your question/problem?
Also I noticed you closed a ticket that had something to do with world names. Can you go more in-depth on that? I recently changed something to do with world names so if its a bug I would love to know so I can fix it.
Thanks, I will look into this bug and fix it prompt! It should make the worlds non-case sensitive but apparently that failed lol.
For your issue. You are trying to see if the player is executing the command correct? If you set it so the player executes /fly it would need to be 'player: fly'
The player will need the essentials fly permission. Which would allow them to execute /fly even without the item.
the 'console: fly %player%' would allow the player to NOT have the essentials fly permission and only be able to fly using the item.
Sure. I have a world names "Hub". I originally, in the items.yml, had the world as "Hub" which worked fine before the update. Then, after the update, it wouldn't work until I changed it to "hub" without the Capital "H".
And I'm still trying to figure out my issue.