New and Improved Scoreboard System

- Scoreboards now AUTO-UPDATE
 - Scoreboards now COME IN COLOR
 - If you want, they can come in EVERY COLOR (Config setting)
 - Scoreboards can be displayed alongside chat output!
 - Prevention of denial of service to SQL via spamming /mctop using a cooldown
 - Added /mccooldown command to show cooldowns for all available skills
This commit is contained in:
riking
2013-09-11 19:42:27 -07:00
parent 89dabaeb43
commit 95f15e68fe
33 changed files with 1539 additions and 590 deletions

View File

@ -27,35 +27,62 @@ General:
# Should mcMMO over-write configs to update, or make new ones ending in .new?
Config_Update_Overwrite: true
Scoreboards:
# Should mcMMO use scoreboards for /inspect?
# Amount of time (in seconds) to display. To display permanently, set to -1
Inspect:
Use: true
Display_Time: 10
# Should mcMMO use scoreboards for /mcrank?
# Amount of time (in seconds) to display. To display permanently, set to -1
Mcrank:
Use: true
Display_Time: 10
# Should mcMMO use scoreboards for /mcstats?
# Amount of time (in seconds) to display. To display permanently, set to -1
Mcstats:
Use: true
Display_Time: 10
# Should mcMMO use scoreboards for /mctop?
# Amount of time (in seconds) to display. To display permanently, set to -1
Mctop:
Use: true
Display_Time: 10
# Should mcMMO use scoreboards for /skillname (/mining, /fishing, etc.)?
# Amount of time (in seconds) to display. To display permanently, set to -1
Skillname:
Use: true
Display_Time: 10
# Should mcMMO display power levels on scoreboards? (below player name-tags)
Power_Level:
Use: false
#
# Settings for the mcMMO scoreboards
###
Scoreboard:
# Display player's power levels below their names?
Power_Level_Tags: false
# Allow players to use "/mcscoreboard keep" to keep the scoreboard up
Allow_Keep: true
# Add some more color on the board :-)
Rainbows: false
# Settings for each type of scoreboard
Types:
# Settings for /mcrank
# The sub-options (Print, Board, Display_Time) are the same for each type.
Rank:
# Should the command output be printed in chat?
Print: false
# Should the command output be displayed in the scoreboard sidebar?
Board: true
# Amount of time (seconds) to display in the sidebar before clearing.
# To display permanently, use "/mcscoreboard keep" or set to -1
Display_Time: 15
# Settings for /mctop
Top:
Print: true
Board: true
Display_Time: 15
# Settings for /mcstats
Stats:
Print: false
Board: true
Display_Time: 15
# Settings for /inspect
Inspect:
Print: false
Board: true
Display_Time: 20
# Settings for /mccooldown
Cooldown:
Print: true
Board: true
Display_Time: 41
# Settings for /<skillname> (e.g. /mining, /unarmed)
# No "print" option is given here; the information will always be displayed in chat.
# It should also be noted that this display is pretty dang cool.
Skill:
Board: true
Display_Time: 30
# Should the board be shown when a player levels up, and for how long?
# It is recommended to NOT have LevelUp_Time be -1, as this may confuse players.
LevelUp_Board: true
LevelUp_Time: 5
Mob_Healthbar:
# Default display for mob health bars - HEARTS, BAR, or DISABLED

View File

@ -74,6 +74,7 @@ Axes.Effect.8=Greater Impact
Axes.Effect.9=Deal bonus damage to unarmored foes
Axes.Listener=Axes:
Axes.SkillName=AXES
Axes.Skills.SS.Name=Skull Splitter
Axes.Skills.SS.Off=[[RED]]**Skull Splitter has worn off**
Axes.Skills.SS.On=[[GREEN]]**Skull Splitter ACTIVATED**
Axes.Skills.SS.Refresh=[[GREEN]]Your [[YELLOW]]Skull Splitter [[GREEN]]ability is refreshed!
@ -91,6 +92,7 @@ Excavation.Effect.3=Ability to dig for treasure
Excavation.Effect.Length=[[RED]]Giga Drill Breaker Length: [[YELLOW]]{0}s
Excavation.Listener=Excavation:
Excavation.SkillName=EXCAVATION
Excavation.Skills.GigaDrillBreaker.Name=Giga Drill Breaker
Excavation.Skills.GigaDrillBreaker.Off=[[RED]]**Giga Drill Breaker has worn off**
Excavation.Skills.GigaDrillBreaker.On=[[GREEN]]**GIGA DRILL BREAKER ACTIVATED**
Excavation.Skills.GigaDrillBreaker.Refresh=[[GREEN]]Your [[YELLOW]]Giga Drill Breaker [[GREEN]]ability is refreshed!
@ -162,6 +164,7 @@ Herbalism.Effect.13=Spread mycelium to dirt & grass
Herbalism.HylianLuck=[[GREEN]]The luck of Hyrule is with you today!
Herbalism.Listener=Herbalism:
Herbalism.SkillName=HERBALISM
Herbalism.Skills.GTe.Name=Green Terra
Herbalism.Skills.GTe.Off=[[RED]]**Green Terra has worn off**
Herbalism.Skills.GTe.On=[[GREEN]]**GREEN TERRA ACTIVATED**
Herbalism.Skills.GTe.Refresh=[[GREEN]]Your [[YELLOW]]Green Terra [[GREEN]]ability is refreshed!
@ -190,6 +193,7 @@ Mining.Effect.Decrease=[[RED]]Demolitions Expert Damage Decrease: [[YELLOW]]{0}
Mining.Effect.DropChance=[[RED]]Double Drop Chance: [[YELLOW]]{0}
Mining.Listener=Mining:
Mining.SkillName=MINING
Mining.Skills.SuperBreaker.Name=Super Breaker
Mining.Skills.SuperBreaker.Off=[[RED]]**Super Breaker has worn off**
Mining.Skills.SuperBreaker.On=[[GREEN]]**SUPER BREAKER ACTIVATED**
Mining.Skills.SuperBreaker.Other.Off=[[RED]]Super Breaker[[GREEN]] has worn off for [[YELLOW]]{0}
@ -198,6 +202,7 @@ Mining.Skills.SuperBreaker.Refresh=[[GREEN]]Your [[YELLOW]]Super Breaker [[GREEN
Mining.Skillup=[[YELLOW]]Mining skill increased by {0}. Total ({1})
#Blast Mining
Mining.Blast.Name=Blast Mining
Mining.Blast.Boom=[[GRAY]]**BOOM**
Mining.Blast.Effect=+{0} ore yield, -{1} debris yield, {2}x drops
Mining.Blast.Radius.Increase=[[RED]]Blast Radius Increase: [[YELLOW]]+{0}
@ -278,6 +283,7 @@ Swords.Effect.6=Bleed
Swords.Effect.7=Apply a bleed DoT
Swords.Listener=Swords:
Swords.SkillName=SWORDS
Swords.Skills.SS.Name=Serrated Strikes
Swords.Skills.SS.Off=[[RED]]**Serrated Strikes has worn off**
Swords.Skills.SS.On=[[GREEN]]**SERRATED STRIKES ACTIVATED**
Swords.Skills.SS.Refresh=[[GREEN]]Your [[YELLOW]]Serrated Strikes [[GREEN]]ability is refreshed!
@ -360,6 +366,7 @@ Unarmed.Effect.8=Iron Grip
Unarmed.Effect.9=Prevents you from being disarmed
Unarmed.Listener=Unarmed:
Unarmed.SkillName=UNARMED
Unarmed.Skills.Berserk.Name=Berserk
Unarmed.Skills.Berserk.Off=[[RED]]**Berserk has worn off**
Unarmed.Skills.Berserk.On=[[GREEN]]**BERSERK ACTIVATED**
Unarmed.Skills.Berserk.Other.Off=[[RED]]Berserk[[GREEN]] has worn off for [[YELLOW]]{0}
@ -381,6 +388,7 @@ Woodcutting.Effect.4=Double Drops
Woodcutting.Effect.5=Double the normal loot
Woodcutting.Listener=Woodcutting:
Woodcutting.SkillName=WOODCUTTING
Woodcutting.Skills.TreeFeller.Name=Tree Feller
Woodcutting.Skills.TreeFeller.Off=[[RED]]**Tree Feller has worn off**
Woodcutting.Skills.TreeFeller.On=[[GREEN]]**TREE FELLER ACTIVATED**
Woodcutting.Skills.TreeFeller.Refresh=[[GREEN]]Your [[YELLOW]]Tree Feller [[GREEN]]ability is refreshed!
@ -422,6 +430,10 @@ Commands.AdminChat.Off=Admin Chat only [[RED]]Off
Commands.AdminChat.On=Admin Chat only [[GREEN]]On
Commands.AdminToggle=[[RED]]- Toggle admin chat
Commands.Chat.Console=*Console*
Commands.Cooldowns.Header=[[GOLD]]--= [[GREEN]]mcMMO Ability Cooldowns[[GOLD]] =--
Commands.Cooldowns.Row.N=\ [[RED]]{0}[[WHITE]] - [[GOLD]]{1} seconds left
Commands.Cooldowns.Row.Y=\ [[AQUA]]{0}[[WHITE]] - [[DARK_GREEN]]Ready!
Commands.Database.Cooldown=[[RED]]You must wait 1 second before using this command again.
Commands.Disabled=[[RED]]This command is disabled.
Commands.DoesNotExist= [[RED]]Player does not exist in the database!
Commands.GodMode.Disabled=[[YELLOW]]mcMMO Godmode Disabled
@ -511,6 +523,15 @@ Commands.PowerLevel=[[DARK_RED]]POWER LEVEL: [[GREEN]]{0}
Commands.Reset.All=[[GREEN]]All of your skill levels have been reset successfully.
Commands.Reset.Single=[[GREEN]]Your {0} skill level has been reset successfully.
Commands.Reset=[[RED]]Reset a skill's level to 0
Commands.Scoreboard.Clear=[[DARK_AQUA]]mcMMO scoreboard cleared.
Commands.Scoreboard.Keep=[[DARK_AQUA]]The mcMMO scoreboard will stay up until you use [[GREEN]]/mcscoreboard clear[[DARK_AQUA]].
#Commands.Scoreboard.Timer=[[BLUE]]This scoreboard will remain visible for [[GOLD]]{1}[[BLUE]] seconds.
Commands.Scoreboard.Help.0=[[GOLD]] == [[GREEN]]Help for [[RED]]/mcscoreboard[[GOLD]] ==
Commands.Scoreboard.Help.1=[[DARK_AQUA]]/mcscoreboard[[AQUA]] clear [[WHITE]] - clear the McMMO scoreboard
Commands.Scoreboard.Help.2=[[DARK_AQUA]]/mcscoreboard[[AQUA]] keep [[WHITE]] - keep the mcMMO scoreboard up
Commands.Scoreboard.Help.3=[[DARK_AQUA]]/mcscoreboard[[AQUA]] time [n] [[WHITE]] - clear the McMMO scoreboard after [[LIGHT_PURPLE]]n[[WHITE]] seconds
Commands.Scoreboard.Tip.Keep=[[GOLD]]Tip: Use [[RED]]/mcscoreboard keep[[GOLD]] to keep the scoreboard from going away.
Commands.Scoreboard.Tip.Clear=[[GOLD]]Tip: Use [[RED]]/mcscoreboard clear[[GOLD]] to get rid of the scoreboard.
Commands.Skill.Invalid=[[RED]]That is not a valid skillname!
Commands.Skill.Leaderboard=[[YELLOW]]--mcMMO [[BLUE]]{0}[[YELLOW]] Leaderboard--
Commands.SkillInfo=[[RED]]- View detailed information about a skill
@ -829,6 +850,7 @@ Commands.Description.addxp=Add mcMMO XP to a user
Commands.Description.hardcore=Modify the mcMMO hardcore percentage or toggle hardcore mode on/off
Commands.Description.inspect=View detailed mcMMO info on another player
Commands.Description.mcability=Toggle mcMMO abilities being readied on right-click on/off
Commands.Description.mccooldown=View all of the mcMMO ability cooldowns
Commands.Description.mcgod=Toggle mcMMO god-mode on/off
Commands.Description.mchud=Change your mcMMO HUD style
Commands.Description.mcmmo=Show a brief description of mcMMO
@ -837,6 +859,7 @@ Commands.Description.mcpurge=Purge users with no mcMMO levels and users who have
Commands.Description.mcrank=Show mcMMO ranking for a player
Commands.Description.mcrefresh=Refresh all cooldowns for mcMMO
Commands.Description.mcremove=Remove a user from the mcMMO database
Commands.Description.mcscoreboard=Manage your mcMMO Scoreboard
Commands.Description.mcstats=Show your mcMMO levels and XP
Commands.Description.mctop=Show mcMMO leader boards
Commands.Description.mmoedit=Edit mcMMO levels for a user
@ -857,15 +880,17 @@ UpdateChecker.Outdated=You are using an outdated version of mcMMO!
UpdateChecker.NewAvailable=There is a new version available on BukkitDev.
#SCOREBOARD HEADERS
Scoreboard.Header.PlayerStats=mcMMO Stats
Scoreboard.Header.PlayerRank=mcMMO Rankings
Scoreboard.Header.PlayerInspect=mcMMO Stats:
Scoreboard.Header.PowerLevel=Power Level
Scoreboard.Misc.PowerLevel=Power Level
Scoreboard.Misc.Level=Level
Scoreboard.Misc.CurrentXP=Current XP
Scoreboard.Misc.RemainingXP=Remaining XP
Scoreboard.Misc.Overall=Overall
Scoreboard.Header.PlayerStats=[[YELLOW]]mcMMO Stats
Scoreboard.Header.PlayerCooldowns=[[YELLOW]]mcMMO Cooldowns
Scoreboard.Header.PlayerRank=[[YELLOW]]mcMMO Rankings
Scoreboard.Header.PlayerInspect=[[YELLOW]]mcMMO Stats: {0}
Scoreboard.Header.PowerLevel=[[RED]]Power Level
Scoreboard.Misc.PowerLevel=[[GOLD]]Power Level
Scoreboard.Misc.Level=[[DARK_AQUA]]Level
Scoreboard.Misc.CurrentXP=[[GREEN]]Current XP
Scoreboard.Misc.RemainingXP=[[YELLOW]]Remaining XP
Scoreboard.Misc.Cooldown=[[LIGHT_PURPLE]]Cooldown
Scoreboard.Misc.Overall=[[GOLD]]Overall
#DATABASE RECOVERY
Recovery.Notice=[[RED]]Notice: mcMMO was [[DARK_RED]]unable to load your data.[[RED]] Retrying 5 times...

View File

@ -36,6 +36,9 @@ commands:
description: Toggle whether or not abilities get readied on right click
mcrefresh:
description: Refresh all cooldowns for mcMMO
mccooldown:
description: Show the cooldowns on all your mcMMO abilities
aliases: [mccooldowns]
mcgod:
description: Toggle mcMMO god-mode on/off
mcstats:
@ -104,7 +107,7 @@ commands:
aliases: [mcmobhealth]
description: Change the style of the mob healthbar
mcscoreboard:
description: Change the current mcMMO scoreboard being displayed
description: Manage your mcMMO Scoreboard
kraken:
aliases: [mckraken]
description: Unleash the kraken!
@ -692,6 +695,7 @@ permissions:
mcmmo.commands.herbalism: true
mcmmo.commands.inspect: true
mcmmo.commands.mcability: true
mcmmo.commands.mccooldown: true
mcmmo.commands.mcmmo.all: true
mcmmo.commands.mcnotify: true
mcmmo.commands.mcrank: true
@ -828,6 +832,8 @@ permissions:
description: Allows access to the mcconvert command for databases
mcmmo.commands.mcconvert.experience:
description: Allows access to the mcconvert command for experience
mcmmo.commands.mccooldown:
description: Allows access to the mccooldowns command
mcmmo.commands.mcgod:
description: Allows access to the mcgod command
mcmmo.commands.mcgod.others: