Add random message

This commit is contained in:
philipmi 2022-03-04 22:29:41 +01:00
parent ccafa95bd0
commit 301e548570
7 changed files with 36 additions and 0 deletions

3
.idea/.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
# Default ignored files
/shelf/
/workspace.xml

6
.idea/misc.xml Normal file
View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

8
.idea/modules.xml Normal file
View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/playerlist.iml" filepath="$PROJECT_DIR$/.idea/playerlist.iml" />
</modules>
</component>
</project>

9
.idea/playerlist.iml Normal file
View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

6
.idea/vcs.xml Normal file
View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

View file

@ -59,3 +59,6 @@ controls.register_on_release(function(user, key)
end end
end) end)
if minetest.get_modpath("random_messages") then
random_messages.add_message({"", "Use your " .. playerlist_key .. " key to show a list of all online players."})
end

View file

@ -1,3 +1,4 @@
name = playerlist name = playerlist
description = The playerlist feature (extracted from the elidragon mod) description = The playerlist feature (extracted from the elidragon mod)
depends = controls, ctf, ctf_colors depends = controls, ctf, ctf_colors
optional_depends = random_messages