diff options
author | jomo <github@jomo.tv> | 2016-02-15 01:27:13 +0100 |
---|---|---|
committer | jomo <github@jomo.tv> | 2016-02-15 01:27:13 +0100 |
commit | 6a4d1447ece65d7cfcfba6b9596f60003e436490 (patch) | |
tree | 22299614e2be2eaeab83882f5937d33fdb3cf8c6 | |
parent | 5a0477fdbfaa222350c62ce948d8371c34bd538f (diff) |
rename tabnames to nametags
I think it's a more descriptive name
-rw-r--r-- | main.py | 6 | ||||
-rwxr-xr-x | nametags.py (renamed from tabnames.py) | 3 |
2 files changed, 4 insertions, 5 deletions
@@ -89,7 +89,7 @@ shared["load_modules"] = [ # Servercontrol extension for telnet access to logs/AC #"servercontrol", # Script helper plugin - "scriptutils", + "scriptutils", # Per-player notes "tag", # vanish toggle module - temporary fix @@ -102,8 +102,8 @@ shared["load_modules"] = [ #"iptracker", #server signs for everyone "serversigns", - # tabnames module to make players names colored on their chars and sort tab after ranks - "tabnames" + # Makes player's names colored, sorts tab list by rank + "nametags" ] shared["modules"] = {} for module in shared["load_modules"]: diff --git a/tabnames.py b/nametags.py index 65e1a2c..88c0696 100755 --- a/tabnames.py +++ b/nametags.py @@ -1,7 +1,5 @@ from helpers import *
-tabnames_version = "v1.0.0"
-
##############################################################
# #
# 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"]
+# prefixes are used for sorting in the tab list
prefixes = {"admin":"a", "mod":"b", "modintraining":"c", "trusted":"d", "builder":"e", "member":"f","visitor":"g"}
@hook.event("player.PlayerJoinEvent", "low")
|