Date: 2014/09/04 00:44:43 UTC-07:00
Type: Denizen Script
MainScoreBoard:
type: task
debug: false
script:
- ^scoreboard viewers:<player> id:MainScoreboard "obj:<&l>Ancient Realms" "lines:<&9>McMMo-Lvl<&co>" Score:<player.mcmmo.level>
- ^scoreboard viewers:<player> id:MainScoreboard "obj:<&l>Ancient Realms" "lines:<&9>Money<&co>" Score:<player.money.as_int>
- ^scoreboard viewers:<player> id:MainScoreboard "obj:<&l>Ancient Realms" "lines:<&9>F-Land<&co>" Score:<player.faction.size>
- ^scoreboard viewers:<player> id:MainScoreboard "obj:<&l>Ancient Realms" "lines:<&9>F-Power<&co>" Score:<player.faction.power.as_int>
- ^scoreboard viewers:<player> id:MainScoreboard "obj:<&l>Ancient Realms" "lines:<&9>Online Players<&co>" Score:<server.list_online_players.size>
- ^scoreboard viewers:<player> id:MainScoreboard "obj:<&l>Ancient Realms" "lines:<&9>Players Joined<&co>" Score:<server.list_players.size>
- ^scoreboard viewers:<player> id:MainScoreboard "obj:<&l>Ancient Realms" "lines:<&9>Online Hours<&co>" Score:<math.as_int:<player.flag[actualtime].as_int>/60>
ScoreboardPlayerscript:
type: world
debug: false
events:
on player joins:
- ^scoreboard remove id:MainScoreboard
- ^scoreboard remove id:Onhitscoreboard
- run s@MainScoreBoard delay:5s
on player kills entity:
- run s@OnHitScoreboard as:<context.damager>
OnHitScoreboard:
type: task
debug: false
script:
- ^scoreboard remove id:MainScoreboard
- ^scoreboard viewers:<player> id:Onhitscoreboard "obj:<bold>Ancient Realms" "lines:<&9>Xp<&co>" Score:<player.flag[xp].as_int>
- ^scoreboard viewers:<player> id:Onhitscoreboard "obj:<bold>Ancient Realms" "lines:<&9>Xp till next Lvl<&co>" Score:<math.as_int:<player.flag[XP]>-<player.flag[nextlevel]>>
- ^scoreboard viewers:<player> id:Onhitscoreboard "obj:<bold>Ancient Realms" "lines:<&9>Level<&co>" Score:<player.flag[xplevel].as_int>
- wait 15
- ^scoreboard remove id:Onhitscoreboard
- run s@MainScoreBoard