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:
@ -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"
|
||||
|
@ -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"
|
||||
|
Reference in New Issue
Block a user