[Mod] Server Essentials [serveressentials]

Post Reply
User avatar
GunshipPenguin
Member
Posts: 94
Joined: Tue Jan 28, 2014 00:38
GitHub: GunshipPenguin
IRC: GunshipPenguin
In-game: GunshipPenguin
Location: Vancouver, BC

[Mod] Server Essentials [serveressentials]

by GunshipPenguin » Post

This mod adds a variety of useful commands and features for use by Minetest server administrators.

Some of the commands included, see the README for all
  • /clearinv - Clear your inventory
    /godmode - Toggle godmode (infinite health and breath)
    /kill - Kill player
    /killme - Kill self
    /heal - Heal self or other player
    /broadcast - Broadcast message to entire server
    /top - Teleport to topmost non air block at current y position
    /gettime - Get current time of day
    /spawn - Teleport to static spawnpoint, if set
    /setspeed - Set your or other player's speed
    /whatisthis - Get itemstring of currently wielded item
    /whois - Get network information of specified player
Some other features included, see the README for all
  • Auto afk Kicking - Kick players who are afk for a specified period of time
    First Time Join Message - Broadcast a message when a player joins for the first time

    Much of this mod is configurable, see settings.lua for more info.

    Dependencies: None
    Licence: CC0

    Github: http://github.com/gunshippenguin/serveressentials
Last edited by GunshipPenguin on Sat Aug 29, 2015 22:46, edited 1 time in total.

User avatar
programmingchicken
Member
Posts: 540
Joined: Sat Apr 18, 2015 02:20
GitHub: pchicken
IRC: chicken pchicken
Location: not here
Contact:

Re: [Mod] Server Essentials [serveressentials]

by programmingchicken » Post

Woah.
<gamerdude> I apologize for the above content

User avatar
jordan4ibanez
Member
Posts: 1895
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez
Location: Rhode Island, USA

Re: [Mod] Server Essentials [serveressentials]

by jordan4ibanez » Post

THAT'S AWESOME!
I have a suggestion:
/ping - sends back PONG!
/whisper - only send a message to a specific user
/tpa - teleport to a specific player. They have to do /tpaaccept or /tpadeny.
/spawn - go to spawn

:D
I've been gone for a long time

User avatar
rubenwardy
Moderator
Posts: 6244
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: United Kingdom
Contact:

Re: [Mod] Server Essentials [serveressentials]

by rubenwardy » Post

Suggestions:

/healme
/wit as an alias for /whatisthis
/bcast as an alias for /broadcast

User avatar
GunshipPenguin
Member
Posts: 94
Joined: Tue Jan 28, 2014 00:38
GitHub: GunshipPenguin
IRC: GunshipPenguin
In-game: GunshipPenguin
Location: Vancouver, BC

Re: [Mod] Server Essentials [serveressentials]

by GunshipPenguin » Post

rubenwardy wrote:Suggestions:

/healme
/wit as an alias for /whatisthis
/bcast as an alias for /broadcast
When run without arguments, /heal will heal the player who issued the command.

Is there a simple way to make a command an alias to another one using the API? If so I'll definitely include the aliases you suggested.
jordan4ibanez wrote:THAT'S AWESOME!
I have a suggestion:
/ping - sends back PONG!
/whisper - only send a message to a specific user
/tpa - teleport to a specific player. They have to do /tpaaccept or /tpadeny.
/spawn - go to spawn

:D
/ping - Added
/whisper - Already provided by the /msg command
/spawn - Already included
/tpa - Will add soon :)

User avatar
rubenwardy
Moderator
Posts: 6244
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: United Kingdom
Contact:

Re: [Mod] Server Essentials [serveressentials]

by rubenwardy » Post

Code: Select all

local function cmd(name, params)
    stuff here
end

minetest.register_chatcommand("one", {
    func = cmd
})

minetest.register_chatcommand("two", {
    func = cmd
})

amadin
Member
Posts: 548
Joined: Tue Jun 16, 2015 16:23

Re: [Mod] Server Essentials [serveressentials]

by amadin » Post

Do you can add a time delay to spawn teleport? It will be good for pvp servers.

User avatar
GunshipPenguin
Member
Posts: 94
Joined: Tue Jan 28, 2014 00:38
GitHub: GunshipPenguin
IRC: GunshipPenguin
In-game: GunshipPenguin
Location: Vancouver, BC

Re: [Mod] Server Essentials [serveressentials]

by GunshipPenguin » Post

amadin wrote:Do you can add a time delay to spawn teleport? It will be good for pvp servers.
Added

User avatar
kidmondo
Member
Posts: 130
Joined: Sun May 11, 2014 07:56
IRC: kidmondo
In-game: kidmondo
Location: New Zealand

Re: [Mod] Server Essentials [serveressentials]

by kidmondo » Post

Noob question but how do I set spawn?

User avatar
programmingchicken
Member
Posts: 540
Joined: Sat Apr 18, 2015 02:20
GitHub: pchicken
IRC: chicken pchicken
Location: not here
Contact:

Re: [Mod] Server Essentials [serveressentials]

by programmingchicken » Post

kidmondo wrote:Noob question but how do I set spawn?
settings.lua
<gamerdude> I apologize for the above content

User avatar
kidmondo
Member
Posts: 130
Joined: Sun May 11, 2014 07:56
IRC: kidmondo
In-game: kidmondo
Location: New Zealand

Re: [Mod] Server Essentials [serveressentials]

by kidmondo » Post

programmingchicken wrote:
kidmondo wrote:Noob question but how do I set spawn?
settings.lua
That still didn't work :/

User avatar
GunshipPenguin
Member
Posts: 94
Joined: Tue Jan 28, 2014 00:38
GitHub: GunshipPenguin
IRC: GunshipPenguin
In-game: GunshipPenguin
Location: Vancouver, BC

Re: [Mod] Server Essentials [serveressentials]

by GunshipPenguin » Post

kidmondo wrote:
programmingchicken wrote:
kidmondo wrote:Noob question but how do I set spawn?
settings.lua
That still didn't work :/
I assume you're talking about the /spawn command. It teleports you to the static spawnpoint, which is set in minetest.conf (see the static_spawnpoint setting). If static_spawnpoint is not set in minetest.conf, /spawn will not be available.

User avatar
swordpaint12
Member
Posts: 191
Joined: Sat Aug 22, 2015 00:50
In-game: [swordpaint12][Belching_Balladeer]
Location: Foobass, isle of Atlantis, castle of Bardvendelle

Re: [Mod] Server Essentials [serveressentials]

by swordpaint12 » Post

+3 Me likey.
God's not dead; remember that!
Yay for MT! No MC here!
I am a human. I'm younger than 100 years old.
I've been playing Minetest since December 2014.

I'm amazed that I haven't been on here in so long! My latest minetest accomplishment was mining by hand (well, as close as you can get in a computer game) a circle 30 blocks in diameter. It took forever but it's pretty cool.

amadin
Member
Posts: 548
Joined: Tue Jun 16, 2015 16:23

Re: [Mod] Server Essentials [serveressentials]

by amadin » Post

Do you can add an option for using /spawn only once in 15 minutes (for example)?

asanetargoss
Member
Posts: 42
Joined: Sun Apr 26, 2015 03:10

Re: [Mod] Server Essentials [serveressentials]

by asanetargoss » Post

I've found the /whatisthis command to be very useful.

User avatar
ManElevation
Member
Posts: 896
Joined: Tue Aug 02, 2016 22:04
GitHub: ManElevation
IRC: ManElevation
In-game: ManElevation
Location: Madrid,Spain

Re: [Mod] Server Essentials [serveressentials]

by ManElevation » Post

kidmondo wrote:Noob question but how do I set spawn?
kidmondo add this mod, than go to were you want the spawn to be and do /setspawn.
after that when you die or you do the /spawn command you will teleport there

Code: Select all

local spawn_spawnpos = minetest.setting_get_pos("static_spawnpoint")

minetest.register_chatcommand("spawn", {
	params = "",
	description = "Teleport to the spawn point",
	func = function(name, param)
		local player = minetest.get_player_by_name(name)
		if not player then
			return false, "Player not found"
		end
		if spawn_spawnpos then
			player:setpos(spawn_spawnpos)
			return true, "Teleporting to spawn..."
		else
			return false, "The spawn point is not set!"
		end
	end,
})

minetest.register_chatcommand("setspawn", {
	params = "",
	description = "Sets the spawn point to your current position",
	privs = { server=true },
	func = function(name, param)
		local player = minetest.get_player_by_name(name)
		if not player then
			return false, "Player not found"
		end
		local pos = player:getpos()
		local x = pos.x
		local y = pos.y
		local z = pos.z
		local pos_string = x..","..y..","..z
		local pos_string_2 = "Setting spawn point to ("..x..", "..y..", "..z..")"
		minetest.setting_set("static_spawnpoint",pos_string)
		spawn_spawnpos = pos
		minetest.setting_save()
		return true, pos_string_2
	end,
})
My Public Mods! Discord: Rottweiler Games#3368

ektor
Member
Posts: 78
Joined: Sat Sep 24, 2016 11:59
IRC: dtarcz
In-game: ektor
Contact:

Re: [Mod] Server Essentials [serveressentials]

by ektor » Post

I'll give a try to this usefull mod !
The /gettime - Get current time of day is not the same result as the /time command ?
Vive Minetest!

User avatar
scottwolff
Member
Posts: 129
Joined: Sat Apr 30, 2016 06:15
In-game: scottwolff or some variant of iasiney
Location: Central Illinois

Re: [Mod] Server Essentials [serveressentials]

by scottwolff » Post

Yes, I have this implemented on my server. Except that I used a seperate mod when I messed up the privs of new players having that permission to use the spawn command so I commented out the spawn portion.

User avatar
Piezo_
Member
Posts: 219
Joined: Fri Jul 20, 2018 21:36
GitHub: is proprietary I use NotABug
Location: (x,y,z)

Re: [Mod] Server Essentials [serveressentials]

by Piezo_ » Post

ManElevation wrote: kidmondo add this mod, than go to were you want the spawn to be and do /setspawn.
after that when you die or you do the /spawn command you will teleport there
Sorry for necroposting, but this setspawn mod is exactly what I need for my server. May I use it on its own, and under what license?
while (true) { suffer(); }

User avatar
ManElevation
Member
Posts: 896
Joined: Tue Aug 02, 2016 22:04
GitHub: ManElevation
IRC: ManElevation
In-game: ManElevation
Location: Madrid,Spain

Re: [Mod] Server Essentials [serveressentials]

by ManElevation » Post

Piezo_ wrote: Sorry for necroposting, but this setspawn mod is exactly what I need for my server. May I use it on its own, and under what license?
the mod was originally made by cheapie/spawn but he removed the mod, the license was GNU and
in the readme it exactly said...

Code: Select all

--Spawn mod for Minetest
--Originally written by VanessaE (I think), rewritten by cheapie
--WTFPL
My Public Mods! Discord: Rottweiler Games#3368

User avatar
Piezo_
Member
Posts: 219
Joined: Fri Jul 20, 2018 21:36
GitHub: is proprietary I use NotABug
Location: (x,y,z)

Re: [Mod] Server Essentials [serveressentials]

by Piezo_ » Post

ManElevation wrote:
Piezo_ wrote: Sorry for necroposting, but this setspawn mod is exactly what I need for my server. May I use it on its own, and under what license?
the mod was originally made by cheapie/spawn but he removed the mod, the license was GNU and
in the readme it exactly said...

Code: Select all

--Spawn mod for Minetest
--Originally written by VanessaE (I think), rewritten by cheapie
--WTFPL
So, is it GNU or WTFPL?

I'll go with GNU, as WTFPL is a pushover license, and wouldn't stop me if it were the case, but I'd still like to know.
while (true) { suffer(); }

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 5 guests