Advertisement
Guest User

Untitled

a guest
Apr 15th, 2015
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. package net.teachlp.bplaced.listeners;
  2.  
  3. import net.teachlp.bplaced.pvplugin.PvPlugin;
  4.  
  5. import org.bukkit.event.EventHandler;
  6. import org.bukkit.event.Listener;
  7. import org.bukkit.event.block.SignChangeEvent;
  8.  
  9. public class SignListener implements Listener {
  10.  
  11. private PvPlugin plugin;
  12.  
  13. public SignListener(PvPlugin pvplugin) {
  14. this.plugin = pvplugin;
  15. }
  16.  
  17. @EventHandler
  18. public void onSignChange(SignChangeEvent e) {
  19. if(e.getLine(0).equals("[PvP]")) {
  20. if(e.getLine(1).equals("1")) {
  21. e.setLine(0, "[PvPlugin]");
  22. e.setLine(1, "Arena 1");
  23. e.setLine(2, plugin.joined.size() + "/12 Spieler");
  24. }
  25. }
  26. }
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement