Page 1 of 1

Disable "giveme" in singleplayer mode?

Posted: Tue Oct 18, 2016 20:22
by EdShouldBeInBed
Is it possible to revoke the "give" command in solo offline play?

More niche question: Is there a way to disable the give part of the gui in unified_inventory mod?

I'd prefer a way to do this so a particular game/ world can not re-instate it, but I'll take putting more steps between me and instant gratification. :)

Re: Disable "giveme" in singleplayer mode?

Posted: Tue Oct 18, 2016 20:54
by MineYoshi
Well, you can write this command "/revoke singleplayer give", that edits the "giveme" priv you have, and delete it. :) But if you want it again then write "/grant singleplayer give" and you'll have the "giveme" command again.

But i don't know how to get off the give part from unified_inventory, maybe you can try the F.A.Q (Frequent Asked Questions) that the mod probably has, or justly ask in the forum thread, surely somebody help you.

Re: Disable "giveme" in singleplayer mode?

Posted: Thu Oct 20, 2016 16:53
by Wuzzy
Is it possible to revoke the "give" command in solo offline play?
No.
More niche question: Is there a way to disable the give part of the gui in unified_inventory mod?
No. :-(


The problem is that singleplayer gets a huge amount of privileges granted and you cannot revoke them. They are granted forcefully, so to say. This practice is known to cause several problems, like making Unified Inventory way too powerful in singleplayer mode.
There's an issue on GitHub about giving singleplayer WAY less privileges by default, and also stop the force-granting: https://github.com/minetest/minetest/issues/4413

Re: Disable "giveme" in singleplayer mode?

Posted: Thu Oct 20, 2016 20:46
by MineYoshi
Wuzzy wrote:
Is it possible to revoke the "give" command in solo offline play?
No.
But i use "/revoke singleplayer give" in offline and it works? Then what's the problem?...

Re: Disable "giveme" in singleplayer mode?

Posted: Sat Oct 22, 2016 11:04
by Wuzzy
Oops. MineYoshi is right. I must have been confused.

Re: Disable "giveme" in singleplayer mode?

Posted: Tue Nov 15, 2016 15:00
by Wuzzy
Update!
In the latest developer version of Minetest, the default privileges of singleplayer have been reduced to a minimal set for playing (interact, shout, privs, basic_privs). So you won't get “give” by default (but you can always use “/grant”, you cheater! :D).

Also, this new minimal set of privileges solves the biggest problems with Unified Inventory in singleplayer. Without give being granted by default, you also don't get the super give powers in the Unified Inventory. This is because Unified Inventory uses the privilege system to decide what you can do with it.

If you don't want to wait for next release, you can already now try to apply my workaround I posted in the Unified Inventory thread.

Re: Disable "giveme" in singleplayer mode?

Posted: Thu Mar 15, 2018 02:56
by EdShouldBeInBed
Wuzzy, your initial answer made me very very sad. But I want you to know, the newer version's set up makes me very, very happy.