Implemented /list command

master
Solebull 2018-12-29 01:30:42 +01:00
parent 601940f089
commit 8944e01aa2
3 changed files with 27 additions and 6 deletions

12
ROADMAP
View File

@ -88,12 +88,14 @@ It's really fast. May be used on a website, to show the actual map.
- [ ] WARNING[Server]: WARNING: minetest.setting_* functions are deprecated. Use methods on the minetest.settings object. (at .../.minetest/games/minetest-solebull/mods/hbarmor/init.lua:97)
Still present with new client ?
**** Multiplayer test
CLOCK: [2018-12-29 sam. 01:10]--[2018-12-29 sam. 01:29] => 0:19
CLOCK: [2018-09-16 dim. 18:28]--[2018-09-16 dim. 18:59] => 0:31
CLOCK: [2018-09-09 dim. 17:42]--[2018-09-09 dim. 21:11] => 3:29
*Before a player can join, add player to whitelist (/whitelist add ...)*
- [X] mescons mod present ? OUI (with exaltion)
- Silver pickaxe mine pas assez vite
- [ ] Add a listplayers command to list connected players
- [X] Add a /list command to list connected players
- [ ] Bigger player inventory
**** TODO *New streamed test*
CLOCK: [2018-12-21 ven. 02:39]--[2018-12-21 ven. 03:01] => 0:22
@ -177,14 +179,14 @@ It's really fast. May be used on a website, to show the actual map.
- [X] The game is now deadly slow maybe due to playerefects
Deactivated autosave every 10 seconds in playereffects/settings.lua
- [X] No PVP at -150 of depth
- [ ] Try to add nether mod
- [X] Try to add nether mod
Create a obsidianportal
Activate it with mese crystal fragment
- [ ] We can't open doors when created by another player
Maybe completely remove doors/ mod
- [ ] modified mg_villages.ENABLE_PROTECTION from true to false
- [X] modified mg_villages.ENABLE_PROTECTION from true to false
Doen't work anymore. We don't want anymore to protect villages
disable it
- [ ] We can't open doors when created by another player
Maybe completely remove doors/ mod
- [ ] Even with protection, we can take what's in villagers' chests
Try to add them as protected chest
- [ ] Too much stuff in NPC villages

3
TODO
View File

@ -11,7 +11,8 @@ minetest-solebull - LGPL-2.1 - A PVP/faction game for minetest based on Cobalt.
* v0.0.1-3 (17 Dec. 2018 - ???)
- (7) Add a nether mod
- (8) Implemented /list command
- Add a nether mod
- Deactivated playereffects autosave
- Add the areas mod
- Added pvp_areas to protect map spawn point

18
mods/list/init.lua Normal file
View File

@ -0,0 +1,18 @@
-- Register the /list command used to print player list
listcmd = function (playername,parameter)
local lst = "Joueurs connectés : "
for _, player in pairs(minetest.get_connected_players()) do
lst = lst..player:get_player_name().." "
end
minetest.chat_send_player(playername,lst)
end
minetest.register_chatcommand("list", {
params = "<cmd>",
description = "list players",
privs = { interact=true },
func = listcmd,
}
)