Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main extends JavaPlugin implements Listener {
- public int x;
- public int y;
- public int z;
- public World world;
- @EventHandler
- public void onSignChange(SignChangeEvent e) {
- Player p = e.getPlayer();
- if (e.getLine(0).equalsIgnoreCase("[DL]")) {
- e.setLine(0, Main.getPlugin().getConfig().getString("Sign.Lightning.0").replaceAll("&", "§"));
- e.setLine(1, Main.getPlugin().getConfig().getString("Sign.Lightning.1").replaceAll("&", "§"));
- e.setLine(2, Main.getPlugin().getConfig().getString("Sign.Lightning.2").replaceAll("&", "§"));
- p.sendMessage(Main.getPlugin().getConfig().getString("Messages.Sign.Place").replaceAll("&", "§"));
- x = e.getBlock().getX();
- y = e.getBlock().getY();
- z = e.getBlock().getZ();
- world = e.getBlock().getWorld();
- }
- }
- @EventHandler
- public void onLightningStrike(LightningStrikeEvent e) {
- e.getLightning().teleport()
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement