Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package de.CTW.utils;
- import org.bukkit.entity.Player;
- import de.CTW.api.ActionBar;
- import de.CTW.listener.BlockBreakListener;
- public class GameBar {
- public static void red() {
- for (Player red : Data.red) {
- if (BlockBreakListener.blue.size() == 0 && BlockBreakListener.green.size() == 0) {
- ActionBar.sendActionBarTime(red, "§6Spawn §8➲ §9Blaue Wolle §8» §a✔ §8| §aGrüne Wolle §8» §a✔" , 2400);
- }
- if (BlockBreakListener.blue.size() == 1 && BlockBreakListener.green.size() == 0) {
- ActionBar.sendActionBarTime(red, "§6Spawn §8➲ §9Blaue Wolle §8» §c✘ §8| §aGrüne Wolle §8» §a✔" , 2400);
- }
- if (BlockBreakListener.blue.size() == 0 && BlockBreakListener.green.size() == 1) {
- ActionBar.sendActionBarTime(red, "§6Spawn §8➲ §9Blaue Wolle §8» §a✔ §8| §aGrüne Wolle §8» §c✘" , 2400);
- }
- if (BlockBreakListener.blue.size() == 1 && BlockBreakListener.green.size() == 1) {
- ActionBar.sendActionBarTime(red, "§6Spawn §8➲ §9Blaue Wolle §8» §c✘ §8| §aGrüne Wolle §8» §c✘" , 2400);
- }
- }
- }
- public static void blue() {
- for (Player blue : Data.blue) {
- if (BlockBreakListener.red.size() == 0 && BlockBreakListener.yellow.size() == 0) {
- ActionBar.sendActionBarTime(blue, "§6Spawn §8➲ §cRote Wolle §8» §a✔ §8| §eGelbe Wolle §8» §a✔" , 2400);
- }
- if (BlockBreakListener.red.size() == 1 && BlockBreakListener.yellow.size() == 0) {
- ActionBar.sendActionBarTime(blue, "§6Spawn §8➲ §cRote Wolle §8» §c✘ §8| §eGelbe Wolle §8» §a✔" , 2400);
- }
- if (BlockBreakListener.red.size() == 0 && BlockBreakListener.yellow.size() == 1) {
- ActionBar.sendActionBarTime(blue, "§6Spawn §8➲ §cRote Wolle §8» §a✔ §8| §eGelbe Wolle §8» §c✘" , 2400);
- }
- if (BlockBreakListener.red.size() == 1 && BlockBreakListener.yellow.size() == 1) {
- ActionBar.sendActionBarTime(blue, "§6Spawn §8➲ §cRote Wolle §8» §c✘ §8| §eGelbe Wolle §8» §c✘" , 2400);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement