package net.estinet.gFeatures.Feature.CTF.Holo;

import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.bukkit.scoreboard.DisplaySlot;
import org.bukkit.scoreboard.Objective;
import org.bukkit.scoreboard.Score;
import org.bukkit.scoreboard.Scoreboard;
import org.bukkit.scoreboard.ScoreboardManager;

import net.estinet.gFeatures.Feature.CTF.Basic;

/*
gFeatures
https://github.com/EstiNet/gFeatures

   Copyright 2016 EstiNet

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
*/

public class CTFScore {
	public Scoreboard Initialize(Player p) throws IllegalStateException, IllegalArgumentException{
		ScoreboardManager manager = Bukkit.getScoreboardManager();
		Scoreboard board = manager.getNewScoreboard();
		Objective objective = board.registerNewObjective("test", "dummy");
		objective.setDisplaySlot(DisplaySlot.SIDEBAR);
		objective.setDisplayName(ChatColor.GOLD + "" + ChatColor.BOLD + "     _Esti" + ChatColor.DARK_AQUA + "" + ChatColor.BOLD +"Net_     ");
		Score score2 = objective.getScore(ChatColor.DARK_BLUE + "Online:"); //Get a fake offline player
		score2.setScore(12);
		Score score3 = objective.getScore(ChatColor.BOLD + "" + Integer.toString(Bukkit.getServer().getOnlinePlayers().size())); //Get a fake offline player
		score3.setScore(11);
		Score score7 = objective.getScore(ChatColor.GREEN + "Time left:"); //Get a fake offline player
		score7.setScore(10);
		Score score10 = objective.getScore(ChatColor.BOLD + "" + Basic.minutes + "m " + Basic.seconds + "s"); //Get a fake offline player
		score10.setScore(9);
		Score score = objective.getScore(ChatColor.AQUA + "Flags Captured (Blue):"); //Get a fake offline player
		score.setScore(8);
		Score score5 = objective.getScore(ChatColor.BOLD + "" + Basic.blueflags + " "); //Get a fake offline player
		score5.setScore(7);
		Score score8 = objective.getScore(ChatColor.GOLD + "Flags Captured (Orange):");
		score8.setScore(6);
		Score score9 = objective.getScore(ChatColor.BOLD + "" + Basic.orangeflags);
		score9.setScore(5);
		Score score12 = objective.getScore(ChatColor.AQUA + "Flag Taker (Blue):");
		score12.setScore(4);
		if(Basic.blueflagger.equals(null)){
		Score score13 = objective.getScore(ChatColor.BOLD + "" + ChatColor.GOLD + "No one.");
		score13.setScore(3);
		}
		else{
			Score score13 = objective.getScore(ChatColor.BOLD + "" + ChatColor.GOLD + Basic.blueflagger.getName());
			score13.setScore(3);
		}
		Score score14 = objective.getScore(ChatColor.GOLD + "Flag Taker (Orange):");
		score14.setScore(2);
		if(Basic.orangeflagger.equals(null)){
			Score score15 = objective.getScore(ChatColor.BOLD + "" + ChatColor.AQUA + "No one.");
			score15.setScore(1);
		}
		else{
			Score score15 = objective.getScore(ChatColor.BOLD + "" + ChatColor.AQUA + Basic.orangeflagger.getName());
			score15.setScore(1);
		}
		return board;
	}
}

@@ -1622,18 +1622,17 @@
 etScore(
-12
+8
 );%0A%09%09Sco
@@ -1799,10 +1799,9 @@
 ore(
-11
+7
 );%0A%09
@@ -1914,18 +1914,17 @@
 etScore(
-10
+6
 );%0A%09%09Sco
@@ -2069,17 +2069,17 @@
 etScore(
-9
+5
 );%0A%09%09Sco
@@ -2189,33 +2189,33 @@
 %09score.setScore(
-8
+4
 );%0A%09%09Score score
@@ -2321,33 +2321,33 @@
 score5.setScore(
-7
+3
 );%0A%09%09Score score
@@ -2425,33 +2425,33 @@
 score8.setScore(
-6
+2
 );%0A%09%09Score score
@@ -2537,811 +2537,11 @@
 ore(
-5);%0A%09%09Score score12 = objective.getScore(ChatColor.AQUA + %22Flag Taker (Blue):%22);%0A%09%09score12.setScore(4);%0A%09%09if(Basic.blueflagger.equals(null))%7B%0A%09%09Score score13 = objective.getScore(ChatColor.BOLD + %22%22 + ChatColor.GOLD + %22No one.%22);%0A%09%09score13.setScore(3);%0A%09%09%7D%0A%09%09else%7B%0A%09%09%09Score score13 = objective.getScore(ChatColor.BOLD + %22%22 + ChatColor.GOLD + Basic.blueflagger.getName());%0A%09%09%09score13.setScore(3);%0A%09%09%7D%0A%09%09Score score14 = objective.getScore(ChatColor.GOLD + %22Flag Taker (Orange):%22);%0A%09%09score14.setScore(2);%0A%09%09if(Basic.orangeflagger.equals(null))%7B%0A%09%09%09Score score15 = objective.getScore(ChatColor.BOLD + %22%22 + ChatColor.AQUA + %22No one.%22);%0A%09%09%09score15.setScore(1);%0A%09%09%7D%0A%09%09else%7B%0A%09%09%09Score score15 = objective.getScore(ChatColor.BOLD + %22%22 + ChatColor.AQUA + Basic.orangeflagger.getName());%0A%09%09%09score15.setScore(1);%0A%09%09%7D
+1);
 %0A%09%09r

Revert "Changes"