1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-06-28 14:16:06 +02:00

fix pclasse assign now others class on join server, no only the default

fix pclasse assign now if class is same, bug on join server
add on_unassigned for all class
This commit is contained in:
2015-12-24 20:36:17 +01:00
parent 6db59ee981
commit 482329bf1d
5 changed files with 27 additions and 19 deletions

View File

@ -10,6 +10,8 @@ pclasses.api.register_class("admin", {
on_assigned = function(pname)
minetest.chat_send_player(pname, "Hello admin.")
end,
on_unassigned = function(pname)
end,
switch_params = {
color = {r = 255, g = 00, b = 224},
holo_item = "maptools:pick_admin"

View File

@ -13,6 +13,8 @@ pclasses.api.register_class("wizard", {
-- Add specs here
minetest.log("action", "[PClasses] Player " .. pname .. " becomes a wizard")
end,
on_unassigned = function(pname)
end,
switch_params = {
color = {r = 230, g = 230, b = 0},
holo_item = "default:book"