add new ranks and comment Prefix
This commit is contained in:
parent
a597520a74
commit
00e43188b8
9
init.lua
9
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", {
|
||||
@ -401,4 +402,4 @@ local path = minetest.get_worldpath().."/ranks.lua"
|
||||
-- Attempt to load per-world ranks
|
||||
if io.open(path) then
|
||||
dofile(path)
|
||||
end
|
||||
end
|
48
ranks.lua
48
ranks.lua
@ -2,20 +2,50 @@
|
||||
|
||||
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},
|
||||
})
|
Loading…
Reference in New Issue
Block a user