#Run command without permission

1 messages · Page 1 of 1 (latest)

sullen tree
#

Im having trouble with players running commands they don't have permission to run. I need them to run the command, but not have the permission

#

Run command without permission

true hemlock
#

what plugin

sullen tree
#

That the command is being run from?

#

I believe its Essentials

#

Its /enchantment Protection 6
Thats the command

#

click_commands: - '[console] eenchantment protection 6' - '[message] &8&l⤜ &7You have successfully bought the &a&lProtection 6&7!'

#

Das what I have so far

true hemlock
#

if you want the player to run it use [player]

sullen tree
#

If I run it with [player] it says I dont have permission

#

because the player doesnt have permission to run that command

true hemlock
#

I am so confused what your trying to do

#

please explain

sullen tree
#

I want a player to run a command /enchantment, without having the actual permission to use the command

true hemlock
#

first of all why is it /ee

#

isnt it /e

#

/enchanter *

#

to b exact

#

be*

#
  • '[console] eenchantment protection 6'
sullen tree
#

no its /enchantment through essentials, therefor /eenchantment

true hemlock
#

ah

#

I see

#

did you test it out?

sullen tree
#

Yes

true hemlock
#

this wouldnt work because console running it btw

sullen tree
#

with - '[console] eenchantment protection 6' its simply not running the command

true hemlock
#

this cmd is required by player because it doesnt know what slot that players on and what item ect

#

youd need to either give them the book

sullen tree
#

Nah it defaults to the held item

true hemlock
#

or do a little hacky thing

#

again

#

IT WONT WORK

#

with console stuff

#

you can do a hacky thing

#

make the permission plugin give temp perms to the cmd and make them run the command

sullen tree
#

We've tried books, idk how to allow unsafe enchants with books

#

Anything above Vanilla max defaults to vanilla max

true hemlock
#

read what I said above

sullen tree
#

Yes yes the hacky stuff, give temps perms.

true hemlock
#

perfect do that

sullen tree
#

Do you know how to have vanilla books enchant over vanilla max?

true hemlock
#

uh

#

lemme see

sullen tree
#

That'd be the ideal way tbh lol

true hemlock
#

use the give cmds

#

instead of diamond sword

#

do book

#

/give USERNAME enchanted_book{StoredEnchantments:[{id:sharpness,lvl:6}]} 1

#

here

#

try this

sullen tree
#

Yeah when I give a book with an enchant over vanilla max, say prot 6, when I use it, it only gives prot IV

true hemlock
#

did you enable the thing in essentials maybe

sullen tree
#

Yeah I have OP and essentials.enchantments.allowunsafe true

true hemlock
#

there is an option in the config

#

I thought?

sullen tree
#

Allow 'unsafe' enchantments in kits and item spawning.

Warning: Mixing and overleveling some enchantments can cause issues with clients, servers and plugins.

unsafe-enchantments: true

true hemlock
#

ya

sullen tree
#

Aye is true

true hemlock
#

hm idk

#

sorry

sullen tree
#

Alright, ill try the hacky hack.

true hemlock
#

kk

sullen tree
#

How do I add an interval, or wait time, between commands?

#

Would I have to use Arguments? I havent used those yet

grizzled basin
#

You can add cooldowns with the master cooldowns plugin, examples on their wiki

frozen sirenBOT
sullen tree
#

I'd rather not add another plugin. Can I just use the Args (Arguments)?

#

I just need commands run in a certain order

grizzled basin
#

you can delay commands with <delay=#>

#

I thought you meant like a cooldown for clicking it

sullen tree
#

Aye, i didnt see that in the wiki. Thanks

burnt marsh
#

if you are using luckperms

#

just give them the permissions to enchant for 1 second

#

or if not, give them the permission, run the command then remove it