Page 1 of 1

[Mod]Extra console commands [concmds]

PostPosted: Thu Aug 23, 2012 06:47
by Wazubaba
Hello all, I have developed a small mod that adds several useful console commands.

These commands are:
  • sethome - set's a player's home warp
  • home - teleports a player to their home
  • heal - sets a player's health to a specified amount(usage: /heal player amount)
  • healme - sets the user's health to a specified amount(usage: /healme amount)

There is also a small ad system that posts an ad upon each time a player joins the game, which is configurable in the init.lua file (along with a toggle for it). By default, this is disabled, so as to not be annoying.

Finally, there is a feature that will teleport a player upon death to their home if they have previously set one.

*IMPORTANT* To use the home system, you must make a directory in your world directory called homes, otherwise
the mod will not be able to save the player homes!

Mod Download:http://j.gs/1355558/concmds
Non adfly link:https://www.dropbox.com/s/yamkhin1rohiuqd/concmds.zip

PostPosted: Thu Aug 23, 2012 11:05
by PilzAdam
There is already a way to add ad to joined players: (minetest.conf.example)
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
# Message of the Day
#motd = Welcome to this awesome Minetest server!

Your mod also sends this to all players:
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_newplayer(function(player)
    if dispad == true then minetest.chat_send_player(player:get_player_name(), ad) end
end
)

PostPosted: Thu Aug 23, 2012 12:05
by Wazubaba
In all honesty, the ad portion of the mod was just a little thing thrown in for fun. I kept it initially disabled because of this.