добавить ветку с версией mtsr

This commit is contained in:
Aleksandr Avdeev 2024-10-11 10:55:45 +03:00
parent a597520a74
commit 9566954f0d
2 changed files with 53 additions and 12 deletions

View File

@ -287,9 +287,10 @@ minetest.register_on_joinplayer(function(player)
end) end)
-- Prefix messages if enabled -- Prefix messages if enabled
minetest.register_on_chat_message(function(name, message) --minetest.register_on_chat_message(function(name, message)
return ranks.chat_send(name, message) -- ranks.chat_send(name, message)
end) -- return false
--end)
-- [chatcommand] /rank -- [chatcommand] /rank
minetest.register_chatcommand("rank", { minetest.register_chatcommand("rank", {

View File

@ -2,20 +2,60 @@
ranks.register("admin", { ranks.register("admin", {
prefix = "Admin", prefix = "Admin",
colour = {a = 255, r = 230, g = 33, b = 23}, --красный
colour = {a = 255, r = 255, g = 0, b = 0},
}) })
ranks.register("moderator", { ranks.register("moderator", {
prefix = "Moderator", prefix = "Moder",
colour = {a = 255, r = 255, g = 83, b = 37}, --темно-красный
colour = {a = 255, r = 139, g = 0, b = 0},
}) })
ranks.register("guardian", { ranks.register("developer", {
prefix = "Guardian", prefix = "Dev",
colour = {a = 255, r = 255, g = 132, b = 0}, --оранжево-красный
colour = {a = 255, r = 255, g = 69, b = 0},
}) })
ranks.register("youtube", { ranks.register("guru", {
prefix = "YouTube", prefix = "Guru",
colour = {a = 255, r = 255, g = 80, b = 71}, --зеленый
colour = {a = 255, r = 154, g = 205, b = 50},
}) })
ranks.register("helper", {
prefix = "Helper",
--синий
colour = {a = 255, r = 139, g = 0, b = 255},
})
ranks.register("businessman", {
prefix = "BusMan",
--золотой
colour = {a = 255, r = 218, g = 165, b = 32},
})
ranks.register("builder", {
prefix = "Builder",
--темнозеленый
colour = {a = 255, r = 64, g = 224, b = 208},
})
ranks.register("avenger", {
prefix = "Avenger",
--коричневый
colour = {a = 255, r = 139, g = 69, b = 19},
})
ranks.register("gamer", {
prefix = "Gamer",
--серый
colour = {a = 255, r = 112, g = 128, b = 144},
})
ranks.register("regular", {
prefix = "Regular",
--серый
colour = {a = 255, r = 0, g = 128, b = 128},
})