Page 1 of 1

[Mod] Admin Tools [admin_tools]

PostPosted: Tue Feb 28, 2012 17:03
by randomproof
Admin Tools

Description:
I was thinking there needs to be tools that let server admins to control their servers. For now I have only made one tool.

Tools:
  • Remove Stick - removes anything it hits (nodes or entities, not players though(yet))
    Mainly this will allow you to remove locked chest and mobs.

Exported functions:
  • admin_tools.set_privilege(player_name, priv, value)
    Allows you to set arbitrarily player privileges
    player_name - string
    priv - string
    value - boolean
  • admin_tools.get_privileges(player_name, priv)
    Checks the values set with admin_tools.set_privilege, returns false if not set yet
    player_name - string
    priv - string

License of code and textures:
WTFPL

Dependencies: none

Links:
Download

Craft:
There are no crafting recipes on propose, only server admins should be able to get these items. Right now you do this by using /giveme or by adding the item to your player's file in "world/players" directory.

PostPosted: Tue Feb 28, 2012 17:04
by sfan5
+1 for this Mod and the Idea

PostPosted: Thu Mar 22, 2012 17:34
by oblitorator
nice idea! i like it 10+

PostPosted: Thu Mar 22, 2012 17:40
by kddekadenz
Here is a present, you can merge it (CC0):
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.register_on_dieplayer(function(player)
    local name = player:get_player_name()
    minetest.chat_send_all(name.. " died")
    return true
end)


It will send a message to all players if someone died (name + died).

PostPosted: Thu Mar 22, 2012 17:41
by sfan5
kddekadenz wrote:Here is a present, you can merge it (CC0):
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.register_on_dieplayer(function(player)
    local name = player:get_player_name()
    minetest.chat_send_all(name.. " died")
    return true
end)


It will send a message to all players if someone died (name + died).

+1

PostPosted: Thu Mar 22, 2012 21:38
by celeron55
Public Domain is not a license. What it means depends on the jurisdiction, and in some countries, eg. Finland, there is no thing called "public domain" at all.

PostPosted: Thu Mar 22, 2012 22:16
by Jordach
celeron55 wrote:Public Domain is not a license. What it means depends on the jurisdiction, and in some countries, eg. Finland, there is no thing called "public domain" at all.

or, i dont give a fuck.

PostPosted: Thu Mar 22, 2012 22:22
by RAPHAEL
Jordach wrote:
celeron55 wrote:Public Domain is not a license. What it means depends on the jurisdiction, and in some countries, eg. Finland, there is no thing called "public domain" at all.

or, i dont give a fuck.

Just use this license. Same thing.
http://sam.zoy.org/wtfpl/COPYING

PostPosted: Fri Mar 23, 2012 05:50
by sfan5
Removed the (invalid license) from topic

PostPosted: Fri Mar 23, 2012 14:59
by RAPHAEL
Can this remove stick remove unknown blocks?

PostPosted: Fri Mar 23, 2012 15:16
by sfan5
I think yes

PostPosted: Fri Mar 23, 2012 15:23
by randomproof
RAPHAEL wrote:Can this remove stick remove unknown blocks?

Yes, any node or entity, but players.

PostPosted: Fri Mar 23, 2012 15:55
by randomproof
Added exported functions:

  • admin_tools.set_privilege(player_name, priv, value)
    Allows you to set arbitrarily player privileges
    player_name - string
    priv - string
    value - boolean
  • admin_tools.get_privileges(player_name, priv)
    Checks the values set with admin_tools.set_privilege, returns false if not set yet
    player_name - string
    priv - string

PostPosted: Sat Mar 24, 2012 11:07
by kddekadenz
celeron55 wrote:Public Domain is not a license. What it means depends on the jurisdiction, and in some countries, eg. Finland, there is no thing called "public domain" at all.


If you do this as owner of this work, you wave all rights into public, so there should be no problem.
There are only problems, e.g. with old books, which are in some countries CC0 after some years of the dead of the author, without his/her permission.

PostPosted: Tue May 22, 2012 21:24
by bcnjr5
Minetest will not start. http://prntscr.com/9k8fw

PostPosted: Thu Mar 28, 2013 16:54
by sfan5-bot
[EE] No Dependencies found


Please fix these Mistakes and report this post, a moderator will delete it
If you believe I have made a Mistake contact sfan5

Re: [Mod] Admin Tools [admin_tools]

PostPosted: Tue Sep 23, 2014 16:44
by Wuzzy
The mod has no dependencies.

The current version did not work for me (function was called before it was defined). So I made a little fix. I call this version 1.0.1.

This fix is too unimportant to me to create and maintain a full fork, so I just drop the zip file here.

Re: [Mod] Admin Tools [admin_tools]

PostPosted: Mon Feb 15, 2016 01:31
by Fritigern
Installed this on my creative server because I had to remove some stray locked chests, iron doors and unknown blocks, only to find that my users would run amuck with the stupid admin wand.
So much for "admin" tools if everyone gets to use them!