mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-13 22:10:31 +01:00
20 lines
406 B
Lua
Executable File
20 lines
406 B
Lua
Executable File
-----------------------------
|
|
-- Boilerplate class
|
|
--
|
|
|
|
pclasses.api.register_class("adventurer", {
|
|
switch_params = {
|
|
color = { r = 142, g = 64, b = 00},
|
|
tile = "wool_white.png",
|
|
holo_item = "unified_inventory:bag_large"
|
|
},
|
|
on_assigned = function(pname, inform)
|
|
if inform then
|
|
minetest.chat_send_player(pname, "You are now an adventurer")
|
|
end
|
|
end,
|
|
on_unassigned = function(pname)
|
|
end
|
|
})
|
|
|