-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d812f57
commit 4291f7a
Showing
6 changed files
with
112 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
src/main/java/me/sisko/partygames/util/ScoreboardProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package me.sisko.partygames.util; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
import org.bukkit.entity.Player; | ||
|
||
import me.missionary.board.provider.BoardProvider; | ||
import net.md_5.bungee.api.ChatColor; | ||
|
||
public class ScoreboardProvider implements BoardProvider { | ||
|
||
@Override | ||
public String getTitle(Player player) { | ||
return ChatColor.LIGHT_PURPLE + "Party Games"; | ||
} | ||
|
||
@Override | ||
public List<String> getLines(Player player) { | ||
if(MinigameManager.inGame()) { | ||
return MinigameManager.getScoreboardLines(player); | ||
} | ||
List<String> lines = new ArrayList<>(); | ||
lines.add("&6mc.left4craft.org"); | ||
lines.add("&7&m-----------------"); | ||
lines.add(ChatColor.LIGHT_PURPLE + "Name" + ChatColor.GRAY + ": " + ChatColor.YELLOW + player.getName()); | ||
lines.add(""); | ||
lines.add(ChatColor.LIGHT_PURPLE + "Wins" + ChatColor.GRAY + ": " + ChatColor.YELLOW + "5"); | ||
lines.add(""); | ||
lines.add(ChatColor.LIGHT_PURPLE + "Points" + ChatColor.GRAY + ": " + ChatColor.YELLOW + "432"); | ||
lines.add(""); | ||
lines.add("&7&m-----------------"); | ||
return lines; | ||
} | ||
|
||
} |