mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 21:26:45 +01:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
2bb03b5e13
@ -77,11 +77,6 @@
|
|||||||
<artifactId>bukkit</artifactId>
|
<artifactId>bukkit</artifactId>
|
||||||
<version>1.8-R0.1-SNAPSHOT</version>
|
<version>1.8-R0.1-SNAPSHOT</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>com.gmail.filoghost.holographicdisplays</groupId>
|
|
||||||
<artifactId>HolographicDisplays</artifactId>
|
|
||||||
<version>2.1.4</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>net.milkbowl.vault</groupId>
|
<groupId>net.milkbowl.vault</groupId>
|
||||||
<artifactId>Vault</artifactId>
|
<artifactId>Vault</artifactId>
|
||||||
|
@ -21,35 +21,23 @@
|
|||||||
|
|
||||||
package com.intellectualcrafters.plot.commands;
|
package com.intellectualcrafters.plot.commands;
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.nio.file.Files;
|
|
||||||
import java.nio.file.Path;
|
|
||||||
import java.nio.file.Paths;
|
|
||||||
import java.nio.file.attribute.BasicFileAttributes;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.Location;
|
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
import com.intellectualcrafters.plot.PlotMain;
|
import com.intellectualcrafters.plot.PlotMain;
|
||||||
import com.intellectualcrafters.plot.config.C;
|
import com.intellectualcrafters.plot.config.C;
|
||||||
import com.intellectualcrafters.plot.generator.HybridPlotManager;
|
|
||||||
import com.intellectualcrafters.plot.generator.HybridPlotWorld;
|
|
||||||
import com.intellectualcrafters.plot.object.ChunkLoc;
|
|
||||||
import com.intellectualcrafters.plot.object.Plot;
|
import com.intellectualcrafters.plot.object.Plot;
|
||||||
import com.intellectualcrafters.plot.object.PlotId;
|
import com.intellectualcrafters.plot.object.PlotId;
|
||||||
import com.intellectualcrafters.plot.util.ChunkManager;
|
|
||||||
import com.intellectualcrafters.plot.util.ExpireManager;
|
|
||||||
import com.intellectualcrafters.plot.util.PlayerFunctions;
|
import com.intellectualcrafters.plot.util.PlayerFunctions;
|
||||||
import com.intellectualcrafters.plot.util.PlotHelper;
|
import com.intellectualcrafters.plot.util.PlotHelper;
|
||||||
import com.intellectualcrafters.plot.util.TaskManager;
|
|
||||||
|
|
||||||
public class Condense extends SubCommand {
|
public class Condense extends SubCommand {
|
||||||
|
|
||||||
|
@ -1,49 +1,49 @@
|
|||||||
package com.intellectualcrafters.plot.object;
|
//package com.intellectualcrafters.plot.object;
|
||||||
|
//
|
||||||
import java.util.Collection;
|
//import java.util.Collection;
|
||||||
|
//
|
||||||
import org.bukkit.Bukkit;
|
//import org.bukkit.Bukkit;
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
//import org.bukkit.plugin.java.JavaPlugin;
|
||||||
|
//
|
||||||
import com.gmail.filoghost.holographicdisplays.api.Hologram;
|
//import com.gmail.filoghost.holographicdisplays.api.Hologram;
|
||||||
import com.gmail.filoghost.holographicdisplays.api.HologramsAPI;
|
//import com.gmail.filoghost.holographicdisplays.api.HologramsAPI;
|
||||||
import com.intellectualcrafters.plot.PlotMain;
|
//import com.intellectualcrafters.plot.PlotMain;
|
||||||
import com.intellectualcrafters.plot.util.PlotHelper;
|
//import com.intellectualcrafters.plot.util.PlotHelper;
|
||||||
|
//
|
||||||
/**
|
///**
|
||||||
* Created 2015-02-14 for PlotSquared
|
// * Created 2015-02-14 for PlotSquared
|
||||||
*
|
// *
|
||||||
* @author Citymonstret
|
// * @author Citymonstret
|
||||||
*/
|
// */
|
||||||
public class PlotHologram {
|
//public class PlotHologram {
|
||||||
|
//
|
||||||
private static JavaPlugin plugin;
|
// private static JavaPlugin plugin;
|
||||||
private final PlotId id;
|
// private final PlotId id;
|
||||||
private final String world;
|
// private final String world;
|
||||||
private Hologram hologram;
|
// private Hologram hologram;
|
||||||
|
//
|
||||||
public PlotHologram(final String world, final PlotId id) {
|
// public PlotHologram(final String world, final PlotId id) {
|
||||||
this.id = id;
|
// this.id = id;
|
||||||
this.world = world;
|
// this.world = world;
|
||||||
this.hologram = createHologram(PlotMain.getPlotManager(world).getSignLoc(Bukkit.getWorld(world), PlotMain.getWorldSettings(world), PlotHelper.getPlot(Bukkit.getWorld(world), id)));
|
// this.hologram = createHologram(PlotMain.getPlotManager(world).getSignLoc(Bukkit.getWorld(world), PlotMain.getWorldSettings(world), PlotHelper.getPlot(Bukkit.getWorld(world), id)));
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
public static Hologram createHologram(final org.bukkit.Location location) {
|
// public static Hologram createHologram(final org.bukkit.Location location) {
|
||||||
return HologramsAPI.createHologram(getPlugin(), location);
|
// return HologramsAPI.createHologram(getPlugin(), location);
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
public static JavaPlugin getPlugin() {
|
// public static JavaPlugin getPlugin() {
|
||||||
if (plugin == null) {
|
// if (plugin == null) {
|
||||||
plugin = JavaPlugin.getPlugin(PlotMain.class);
|
// plugin = JavaPlugin.getPlugin(PlotMain.class);
|
||||||
}
|
// }
|
||||||
return plugin;
|
// return plugin;
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
public static void removeAll() {
|
// public static void removeAll() {
|
||||||
final Collection<Hologram> holograms = HologramsAPI.getHolograms(getPlugin());
|
// final Collection<Hologram> holograms = HologramsAPI.getHolograms(getPlugin());
|
||||||
for (final Hologram h : holograms) {
|
// for (final Hologram h : holograms) {
|
||||||
h.delete();
|
// h.delete();
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
}
|
//}
|
||||||
|
@ -29,7 +29,6 @@ import java.util.UUID;
|
|||||||
|
|
||||||
import net.milkbowl.vault.economy.Economy;
|
import net.milkbowl.vault.economy.Economy;
|
||||||
|
|
||||||
import org.apache.logging.log4j.core.pattern.IntegerPatternConverter;
|
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.Chunk;
|
import org.bukkit.Chunk;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
|
Loading…
Reference in New Issue
Block a user