Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.mrkirby153.plugins.simplegames.signs;
- import me.mrkirby153.plugins.simplegames.game.Game;
- import org.bukkit.ChatColor;
- import org.bukkit.Location;
- import org.bukkit.block.Block;
- import org.bukkit.block.Sign;
- import java.util.ArrayList;
- public class SignWall {
- private Location pt1;
- private Location pt2;
- private Game game;
- private ArrayList<Location> signs;
- private int count;
- public SignWall(Location pt1, Location pt2, Game game, ArrayList<Location> signs) {
- this.pt1 = pt1;
- this.pt2 = pt2;
- this.game = game;
- this.signs = signs;
- }
- public void update() {
- if (count > 3) count = 0;
- for (Location l : signs) {
- Block b = l.getBlock();
- if (!b.getType().toString().contains("SIGN")) {
- System.out.println("returned");
- return;
- }
- System.out.println("passed");
- Sign sign = (Sign) b.getState();
- sign.setLine(0, ChatColor.DARK_RED + "################");
- sign.setLine(1, ChatColor.RED + "Offline" + count);
- sign.setLine(3, ChatColor.DARK_RED + "################");
- }
- count++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment