[Mod]Extra console commands [concmds]

Wazubaba
Member
 
Posts: 10
Joined: Wed Jul 04, 2012 22:44

[Mod]Extra console commands [concmds]

by Wazubaba » Thu Aug 23, 2012 06:47

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
Last edited by Wazubaba on Thu Aug 23, 2012 06:48, edited 1 time in total.
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Thu Aug 23, 2012 11:05

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
)
Last edited by PilzAdam on Thu Aug 23, 2012 11:05, edited 1 time in total.
 

Wazubaba
Member
 
Posts: 10
Joined: Wed Jul 04, 2012 22:44

by Wazubaba » Thu Aug 23, 2012 12:05

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.
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 9 guests

cron