ForgeEssentials

ForgeEssentials

339k Downloads

ability to bypass permission checking on a PlayerEntity in scripting

jsrfuture opened this issue ยท 9 comments

commented

I'm trying to do a simple /claim command, so it claim a 3x3 chunk around the players without giving them worldedit.selection.expand command because I want them to claim chunk, only.

Here's my attempt:
http://pastebin.com/rxscGB9q

It always says "the console cannot run that command".

commented

This command only works with player entities. There is no way to specify a player.

commented

okey, thanks you. I think i understand what i could do.

commented

ok

You could try a doas comand.

commented

Thanks again, using doas @sender did work, can't hide the chat spam but everything seem to work just like i wanted.

http://pastebin.com/ahkKn5EA

commented

Do you want the ability to run a command as a player but with the permissions of server?

And ability to hide chat spam?

commented

well, yes that pretty much exactly what i want. Is there an alternative? Though what i did was my only option, i'm a complete novice.

commented

Not right now. But you can turn this issue into a feature request.

commented

great! I'm sure I'm not the only one who would find this really usefull.

commented

Closing this as of 1.7.10 FE changed scripting engine to JS.