Disable "giveme" in singleplayer mode?

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

Disable "giveme" in singleplayer mode?

by EdShouldBeInBed » Tue Oct 18, 2016 20:22

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: 4267
Joined: Wed Jul 08, 2015 13:20
GitHub: MineYosh
IRC: MineYoshi
In-game: Kirby_Retro

Re: Disable "giveme" in singleplayer mode?

by MineYoshi » Tue Oct 18, 2016 20:54

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.
People talk about freedom of speech, so i'll say that God exists.
Open your eyes!! See The big unicorn conspiracy.!! :D The government has been lying to us about unicorns!!
"I've learned there are three things you don't discuss with people: religion, politics and the Great Pumpkin" - Linus Van Pelt
I'm the Officially 1st ABJist in the world ( ͡° ͜ʖ ͡°)
 

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

Re: Disable "giveme" in singleplayer mode?

by Wuzzy » Thu Oct 20, 2016 16:53

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
I'm creating MineClone 2, a Minecraft clone for Minetest.
I made the Help modpack, adding in-game help to Minetest.
 

User avatar
MineYoshi
Member
 
Posts: 4267
Joined: Wed Jul 08, 2015 13:20
GitHub: MineYosh
IRC: MineYoshi
In-game: Kirby_Retro

Re: Disable "giveme" in singleplayer mode?

by MineYoshi » Thu Oct 20, 2016 20:46

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?...
People talk about freedom of speech, so i'll say that God exists.
Open your eyes!! See The big unicorn conspiracy.!! :D The government has been lying to us about unicorns!!
"I've learned there are three things you don't discuss with people: religion, politics and the Great Pumpkin" - Linus Van Pelt
I'm the Officially 1st ABJist in the world ( ͡° ͜ʖ ͡°)
 

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

Re: Disable "giveme" in singleplayer mode?

by Wuzzy » Sat Oct 22, 2016 11:04

Oops. MineYoshi is right. I must have been confused.
I'm creating MineClone 2, a Minecraft clone for Minetest.
I made the Help modpack, adding in-game help to Minetest.
 

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

Re: Disable "giveme" in singleplayer mode?

by Wuzzy » Tue Nov 15, 2016 15:00

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.
I'm creating MineClone 2, a Minecraft clone for Minetest.
I made the Help modpack, adding in-game help to Minetest.
 


Return to Minetest General

Who is online

Users browsing this forum: No registered users and 23 guests

cron