[Mod] Server Essentials [serveressentials]

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

[Mod] Server Essentials [serveressentials]

by GunshipPenguin » Wed Jun 03, 2015 21:50

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
[list]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
Location: not here
GitHub: pchicken
IRC: chicken pchicken
 

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

Re: [Mod] Server Essentials [serveressentials]

by jordan4ibanez » Thu Jun 04, 2015 05:04

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
If you can think it, you can make it! My Patreon :D
 

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

Re: [Mod] Server Essentials [serveressentials]

by rubenwardy » Thu Jun 04, 2015 07:56

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
Location: Vancouver, BC
GitHub: GunshipPenguin
IRC: GunshipPenguin
In-game: GunshipPenguin

Re: [Mod] Server Essentials [serveressentials]

by GunshipPenguin » Sat Jun 06, 2015 05:41

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: 5453
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: [Mod] Server Essentials [serveressentials]

by rubenwardy » Sat Jun 06, 2015 21:47

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: 544
Joined: Tue Jun 16, 2015 16:23

Re: [Mod] Server Essentials [serveressentials]

by amadin » Tue Aug 11, 2015 05:39

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
Location: Vancouver, BC
GitHub: GunshipPenguin
IRC: GunshipPenguin
In-game: GunshipPenguin

Re: [Mod] Server Essentials [serveressentials]

by GunshipPenguin » Sat Aug 29, 2015 22:43

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
Location: New Zealand
IRC: kidmondo
In-game: kidmondo
 

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

Re: [Mod] Server Essentials [serveressentials]

by programmingchicken » Sat Oct 17, 2015 02:59

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
Location: New Zealand
IRC: kidmondo
In-game: kidmondo

Re: [Mod] Server Essentials [serveressentials]

by kidmondo » Sat Oct 17, 2015 03:41

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
Location: Vancouver, BC
GitHub: GunshipPenguin
IRC: GunshipPenguin
In-game: GunshipPenguin

Re: [Mod] Server Essentials [serveressentials]

by GunshipPenguin » Sat Oct 17, 2015 05:57

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
Location: Foobass, isle of Atlantis, castle of Bardvendelle
In-game: [swordpaint12][Belching_Balladeer]

Re: [Mod] Server Essentials [serveressentials]

by swordpaint12 » Mon Oct 19, 2015 03:41

+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: 544
Joined: Tue Jun 16, 2015 16:23

Re: [Mod] Server Essentials [serveressentials]

by amadin » Sat Nov 21, 2015 20:05

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

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

Re: [Mod] Server Essentials [serveressentials]

by asanetargoss » Sat Nov 21, 2015 21:30

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

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

Re: [Mod] Server Essentials [serveressentials]

by ManElevation » Wed Jan 11, 2017 10:06

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: 70
Joined: Sat Sep 24, 2016 11:59

Re: [Mod] Server Essentials [serveressentials]

by ektor » Fri Jan 13, 2017 20:28

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 ?
 

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

Re: [Mod] Server Essentials [serveressentials]

by scottwolff » Wed Feb 14, 2018 22:58

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.
 


Return to Mod Releases



Who is online

Users browsing this forum: No registered users and 4 guests