Disable "giveme" in singleplayer mode?

Post Reply
EdShouldBeInBed
Member
Posts: 48
Joined: Sun Feb 22, 2015 16:03
In-game: EdShdBInBed

Disable "giveme" in singleplayer mode?

by EdShouldBeInBed » Post

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. :)
I'm a writer who tinkers with code on occasion. I play minetest when insomnia makes the writing hard.

User avatar
MineYoshi
Member
Posts: 5373
Joined: Wed Jul 08, 2015 13:20
Contact:

Re: Disable "giveme" in singleplayer mode?

by MineYoshi » Post

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.
Oi

User avatar
Wuzzy
Member
Posts: 4089
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: Disable "giveme" in singleplayer mode?

by Wuzzy » Post

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
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH

User avatar
MineYoshi
Member
Posts: 5373
Joined: Wed Jul 08, 2015 13:20
Contact:

Re: Disable "giveme" in singleplayer mode?

by MineYoshi » Post

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?...
Oi

User avatar
Wuzzy
Member
Posts: 4089
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: Disable "giveme" in singleplayer mode?

by Wuzzy » Post

Oops. MineYoshi is right. I must have been confused.
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH

User avatar
Wuzzy
Member
Posts: 4089
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: Disable "giveme" in singleplayer mode?

by Wuzzy » Post

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.
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH

EdShouldBeInBed
Member
Posts: 48
Joined: Sun Feb 22, 2015 16:03
In-game: EdShdBInBed

Re: Disable "giveme" in singleplayer mode?

by EdShouldBeInBed » Post

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.
I'm a writer who tinkers with code on occasion. I play minetest when insomnia makes the writing hard.

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests