2015-07-31 21:53:32 +02:00
|
|
|
-----------------
|
|
|
|
-- Admin class --
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
--
|
|
|
|
-- https://github.com/MinetestForFun/minetest-minetestforfun-server/issues/139
|
|
|
|
--
|
|
|
|
|
|
|
|
pclasses.api.register_class("admin", {
|
2016-01-03 23:01:40 +01:00
|
|
|
on_assigned = function(pname, inform)
|
|
|
|
if inform then
|
|
|
|
minetest.chat_send_player(pname, "Hello admin.")
|
|
|
|
end
|
2015-08-16 15:28:15 +02:00
|
|
|
end,
|
2015-12-24 20:36:17 +01:00
|
|
|
on_unassigned = function(pname)
|
|
|
|
end,
|
2015-08-17 10:53:13 +02:00
|
|
|
switch_params = {
|
2015-08-20 17:11:46 +02:00
|
|
|
color = {r = 255, g = 00, b = 224},
|
|
|
|
holo_item = "maptools:pick_admin"
|
2015-08-17 10:53:13 +02:00
|
|
|
}
|
2015-07-31 21:53:32 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
pclasses.api.reserve_item("admin", "3d_armor:helmet_admin")
|
|
|
|
pclasses.api.reserve_item("admin", "3d_armor:chestplate_admin")
|
|
|
|
pclasses.api.reserve_item("admin", "3d_armor:leggings_admin")
|
|
|
|
pclasses.api.reserve_item("admin", "3d_armor:boots_admin")
|
2015-08-20 17:11:46 +02:00
|
|
|
pclasses.api.reserve_item("admin", "shields:shield_admin")
|
2015-07-31 21:53:32 +02:00
|
|
|
pclasses.api.reserve_item("admin", "maptools:pick_admin")
|
|
|
|
pclasses.api.reserve_item("admin", "maptools:pick_admin_with_drops")
|