From 9566954f0db80829ad3bd3367e29b4283c52eff6 Mon Sep 17 00:00:00 2001 From: Aleksandr Avdeev Date: Fri, 11 Oct 2024 10:55:45 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20=D0=B2=D0=B5=D1=82=D0=BA=D1=83=20=D1=81=20=D0=B2=D0=B5?= =?UTF-8?q?=D1=80=D1=81=D0=B8=D0=B5=D0=B9=20mtsr?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init.lua | 7 ++++--- ranks.lua | 58 ++++++++++++++++++++++++++++++++++++++++++++++--------- 2 files changed, 53 insertions(+), 12 deletions(-) diff --git a/init.lua b/init.lua index 5ff02f4..cf1f0a9 100644 --- a/init.lua +++ b/init.lua @@ -287,9 +287,10 @@ minetest.register_on_joinplayer(function(player) end) -- Prefix messages if enabled -minetest.register_on_chat_message(function(name, message) - return ranks.chat_send(name, message) -end) +--minetest.register_on_chat_message(function(name, message) +-- ranks.chat_send(name, message) +-- return false +--end) -- [chatcommand] /rank minetest.register_chatcommand("rank", { diff --git a/ranks.lua b/ranks.lua index 3c0f7f1..4020456 100644 --- a/ranks.lua +++ b/ranks.lua @@ -2,20 +2,60 @@ ranks.register("admin", { prefix = "Admin", - colour = {a = 255, r = 230, g = 33, b = 23}, + --красный + colour = {a = 255, r = 255, g = 0, b = 0}, }) ranks.register("moderator", { - prefix = "Moderator", - colour = {a = 255, r = 255, g = 83, b = 37}, + prefix = "Moder", + --темно-красный + colour = {a = 255, r = 139, g = 0, b = 0}, }) -ranks.register("guardian", { - prefix = "Guardian", - colour = {a = 255, r = 255, g = 132, b = 0}, +ranks.register("developer", { + prefix = "Dev", + --оранжево-красный + colour = {a = 255, r = 255, g = 69, b = 0}, }) -ranks.register("youtube", { - prefix = "YouTube", - colour = {a = 255, r = 255, g = 80, b = 71}, +ranks.register("guru", { + prefix = "Guru", + --зеленый + 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}, +}) \ No newline at end of file