Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- public void OnJoin(PlayerJoinEvent e) {
- Player p = e.getPlayer();
- main.online.add(p);
- int i = main.online.size();
- e.setJoinMessage(main.prefix+"§6"+p.getName()+" §7Hat das Spiel Betreten! §8[§7"+i+"§8/§72§8]");
- p.teleport(Navigator.getgame1(p));
- if (main.online.size() == 2) {
- Variables.startjoin();
- }
- }
- @EventHandler
- public void OnLeave(PlayerQuitEvent e) {
- Player p = e.getPlayer();
- main.online.remove(p);
- int i = main.online.size();
- e.setQuitMessage(main.prefix+"§6"+p.getName()+" §7Hat das Spiel Verlassen! §8[§7"+i+"§8/§72§8]");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement