Adding tabnames, updating main #34

Merged
Pepich merged 5 commits from tabnames into dev 2016-02-15 00:34:56 +00:00
2 changed files with 4 additions and 5 deletions
Showing only changes of commit 6a4d1447ec - Show all commits

View File

@ -89,7 +89,7 @@ shared["load_modules"] = [
# Servercontrol extension for telnet access to logs/AC # Servercontrol extension for telnet access to logs/AC
#"servercontrol", #"servercontrol",
# Script helper plugin # Script helper plugin
"scriptutils", "scriptutils",
# Per-player notes # Per-player notes
"tag", "tag",
# vanish toggle module - temporary fix # vanish toggle module - temporary fix
@ -102,8 +102,8 @@ shared["load_modules"] = [
#"iptracker", #"iptracker",
#server signs for everyone #server signs for everyone
"serversigns", "serversigns",
# tabnames module to make players names colored on their chars and sort tab after ranks # Makes player's names colored, sorts tab list by rank
"tabnames" "nametags"
] ]
shared["modules"] = {} shared["modules"] = {}
for module in shared["load_modules"]: for module in shared["load_modules"]:

View File

@ -1,7 +1,5 @@
from helpers import * from helpers import *
tabnames_version = "v1.0.0"
############################################################## ##############################################################
# # # #
# This module automatically puts people in the corresponding # # This module automatically puts people in the corresponding #
@ -11,6 +9,7 @@ tabnames_version = "v1.0.0"
############################################################## ##############################################################
ranks = ["visitor", "member", "builder", "trusted", "modintraining", "mod", "admin"] ranks = ["visitor", "member", "builder", "trusted", "modintraining", "mod", "admin"]
# prefixes are used for sorting in the tab list
prefixes = {"admin":"a", "mod":"b", "modintraining":"c", "trusted":"d", "builder":"e", "member":"f","visitor":"g"} prefixes = {"admin":"a", "mod":"b", "modintraining":"c", "trusted":"d", "builder":"e", "member":"f","visitor":"g"}
@hook.event("player.PlayerJoinEvent", "low") @hook.event("player.PlayerJoinEvent", "low")