Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try
- {
- bottomRight = new Location(claimsWorld, plotRegion.getMinimumPoint().getX(), plotRegion.getMinimumPoint().getY(), plotRegion.getMinimumPoint().getZ());
- bottomLeft = new Location(claimsWorld, bottomRight.getX() + (plotSize - 1), plugin.plotHeight, bottomRight.getZ());
- topRight = new Location(claimsWorld, bottomRight.getX(), plugin.plotHeight, bottomRight.getZ() + (plotSize - 1));
- topLeft = new Location(claimsWorld, bottomRight.getX() + (plotSize - 1), plugin.plotHeight, bottomRight.getZ() + (plotSize - 1));
- }
- catch (NullPointerException e1)
- {
- plugin.getServer().getPlayer(sender.getName()).sendMessage(pluginPrefix + plugin.messages.getMessage("plot-not-found", plotName));
- return;
- }
- try
- {
- regeneratePlot(((Player)sender).getName(), playerName, plotName, worldName);
- }
- catch (InvalidWorldException e)
- {
- plugin.getServer().getPlayer(sender.getName()).sendMessage(pluginPrefix + plugin.messages.getMessage("not-plotworld-error", worldName));
- return;
- }
- if (plugin.signsEnabled)
- {
- if (plugin.signPlacementMethod.equals("entrance"))
- {
- Location entranceLocation1 = new Location(claimsWorld, bottomRight.getX() + (plotSize / 2) - 2, plugin.plotHeight + 3, bottomRight.getZ() + (plotSize));
- Location entranceLocation2 = new Location(claimsWorld, bottomRight.getX() + (plotSize / 2) + 2, plugin.plotHeight + 3, bottomRight.getZ() + (plotSize));
- removeSign(entranceLocation1);
- removeSign(entranceLocation2);
- }
- else if (plugin.signPlacementMethod.equals("corners"))
- {
- Location bottomRightTest = new Location(claimsWorld, bottomRight.getX() - 1, bottomRight.getY() + 3, bottomRight.getZ() - 1);
- removeSign(bottomRightTest);
- Location bottomLeftTest = new Location(claimsWorld, bottomLeft.getX() + 1, bottomLeft.getY() + 3, bottomLeft.getZ() - 1);
- removeSign(bottomLeftTest);
- Location topRightSign = new Location(claimsWorld, topRight.getX() - 1, topRight.getY() + 3, topRight.getZ() + 1);
- removeSign(topRightSign);
- Location topLeftSign = new Location(claimsWorld, topLeft.getX() + 1, topLeft.getY() + 3, topLeft.getZ() + 1);
- removeSign(topLeftSign);
- }
- else if (plugin.signPlacementMethod.equals("both"))
- {
- Location entranceLocation1 = new Location(claimsWorld, bottomRight.getX() + (plotSize / 2) - 2, plugin.plotHeight + 3, bottomRight.getZ() + (plotSize));
- Location entranceLocation2 = new Location(claimsWorld, bottomRight.getX() + (plotSize / 2) + 2, plugin.plotHeight + 3, bottomRight.getZ() + (plotSize));
- removeSign(entranceLocation1);
- removeSign(entranceLocation2);
- Location bottomRightTest = new Location(claimsWorld, bottomRight.getX() - 1, bottomRight.getY() + 3, bottomRight.getZ() - 1);
- removeSign(bottomRightTest);
- Location bottomLeftTest = new Location(claimsWorld, bottomLeft.getX() + 1, bottomLeft.getY() + 3, bottomLeft.getZ() - 1);
- removeSign(bottomLeftTest);
- Location topRightSign = new Location(claimsWorld, topRight.getX() - 1, topRight.getY() + 3, topRight.getZ() + 1);
- removeSign(topRightSign);
- Location topLeftSign = new Location(claimsWorld, topLeft.getX() + 1, topLeft.getY() + 3, topLeft.getZ() + 1);
- removeSign(topLeftSign);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement