Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 26th, 2012  |  syntax: None  |  size: 0.62 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. if (signs != null) {
  2.                                         for (Entry<String, Location> entry : signs.entrySet()) {
  3.                                                 String pos = entry.getKey();
  4.  
  5.                                                 Player p = null;
  6.                                                 double d = 0;
  7.                                                 String pos1 = null;
  8.                                                 String two = null;
  9.                                                 String three = null;
  10.  
  11.                                                 for (SortablePlayerData pdata : order) {
  12.                                                         p = pdata.player;
  13.                                                         d = pdata.score;
  14.                                                 }
  15.  
  16.                                                 Block s = plugin.getServer().getWorld("world").getBlockAt(entry.getValue());
  17.                                                 Sign sign = (Sign) s.getState();
  18.                                                 sign.setLine(0, pos1 + " " + p.getName());
  19.                                                 sign.setLine(1, "K:D");
  20.                                                 sign.setLine(2, two);
  21.                                                 sign.setLine(3, three);
  22.                                         }
  23.                                 }