mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-15 23:10:31 +01:00
crabman77
482329bf1d
fix pclasse assign now if class is same, bug on join server add on_unassigned for all class
18 lines
374 B
Lua
Executable File
18 lines
374 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)
|
|
minetest.chat_send_player(pname, "You are now an adventurer")
|
|
end,
|
|
on_unassigned = function(pname)
|
|
end
|
|
})
|
|
|