[Mod] Server Essentials [serveressentials]

User avatar
GunshipPenguin
Member
 
Posts: 94
Joined: Tue Jan 28, 2014 00:38
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: 537
Joined: Sat Apr 18, 2015 02:20
GitHub: ProgrammingChicken
IRC: gamer chicken
In-game: gamerdude

Re: [Mod] Server Essentials [serveressentials]

by programmingchicken » Wed Jun 03, 2015 22:54

Woah.
I'm bold. I'm sarcastic. I'm PChicken.
 

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
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.
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
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
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
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: [Mod] Server Essentials [serveressentials]

by rubenwardy » Sat Jun 06, 2015 21:47

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
local function cmd(name, params)
    stuff here
end

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

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

amadin
Member
 
Posts: 471
Joined: Tue Jun 16, 2015 16:23
GitHub: Amadin

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

Re: [Mod] Server Essentials [serveressentials]

by kidmondo » Sat Oct 17, 2015 02:57

Noob question but how do I set spawn?
 

User avatar
programmingchicken
Member
 
Posts: 537
Joined: Sat Apr 18, 2015 02:20
GitHub: ProgrammingChicken
IRC: gamer chicken
In-game: gamerdude

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
I'm bold. I'm sarcastic. I'm PChicken.
 

User avatar
kidmondo
Member
 
Posts: 130
Joined: Sun May 11, 2014 07:56
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
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: 187
Joined: Sat Aug 22, 2015 00:50
In-game: [swordpaint12][Belching_Balladeer]

Re: [Mod] Server Essentials [serveressentials]

by swordpaint12 » Mon Oct 19, 2015 03:41

+3 Me likey.
Winter Cumicles
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.
Fruit!

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

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: 36
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.
 

ManElevation
Member
 
Posts: 213
Joined: Tue Aug 02, 2016 22:04
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
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
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,
})
Hey there im going to be off minetest for a while because my company has been deleloping a game called Ground Conflict, if you wish to see some screenshots or have some info, than please join our discord server https://discord.gg/C9ygXJn
 

User avatar
ektor
Member
 
Posts: 24
Joined: Sat Sep 24, 2016 11:59
IRC: ektor
In-game: ektor

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 ?
 


Return to Mod Releases

Who is online

Users browsing this forum: No registered users and 82 guests

cron