mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
bugs bugs and more bugs
This commit is contained in:
parent
3ffb182a3c
commit
0f7b5a4526
@ -131,15 +131,38 @@ public class PlotMeConverter {
|
|||||||
new PlotId(Integer.parseInt(plot.id.split(";")[0]), Integer.parseInt(plot.id.split(";")[1]));
|
new PlotId(Integer.parseInt(plot.id.split(";")[0]), Integer.parseInt(plot.id.split(";")[1]));
|
||||||
com.intellectualcrafters.plot.Plot pl = null;
|
com.intellectualcrafters.plot.Plot pl = null;
|
||||||
if (online) {
|
if (online) {
|
||||||
pl =
|
pl = new com.intellectualcrafters.plot.Plot(
|
||||||
new com.intellectualcrafters.plot.Plot(id, plot.getOwnerId(), plot.getBiome(), psAdded, psTrusted, psDenied, false, 8000l, false, "", PlotHomePosition.DEFAULT, null, world.getName(), new boolean[] {
|
id,
|
||||||
false, false, false, false });
|
plot.getOwnerId(),
|
||||||
|
plot.getBiome(),
|
||||||
|
psAdded, psTrusted,
|
||||||
|
psDenied,
|
||||||
|
false,
|
||||||
|
8000l,
|
||||||
|
false,
|
||||||
|
"",
|
||||||
|
PlotHomePosition.DEFAULT,
|
||||||
|
null,
|
||||||
|
world.getName(),
|
||||||
|
new boolean[] { false, false, false, false });
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
String owner = plot.getOwner();
|
String owner = plot.getOwner();
|
||||||
pl =
|
pl = new com.intellectualcrafters.plot.Plot(
|
||||||
new com.intellectualcrafters.plot.Plot(id, UUID.nameUUIDFromBytes(("OfflinePlayer:" + owner).getBytes(Charsets.UTF_8)), plot.getBiome(), psAdded, psTrusted, psDenied, false, 8000l, false, "", PlotHomePosition.DEFAULT, null, world.getName(), new boolean[] {
|
id,
|
||||||
false, false, false, false });
|
UUID.nameUUIDFromBytes(("OfflinePlayer:" + owner).getBytes(Charsets.UTF_8)),
|
||||||
|
plot.getBiome(),
|
||||||
|
psAdded,
|
||||||
|
psTrusted,
|
||||||
|
psDenied,
|
||||||
|
false,
|
||||||
|
8000l,
|
||||||
|
false,
|
||||||
|
"",
|
||||||
|
PlotHomePosition.DEFAULT,
|
||||||
|
null,
|
||||||
|
world.getName(),
|
||||||
|
new boolean[] { false, false, false, false });
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO createPlot doesn't add helpers /
|
// TODO createPlot doesn't add helpers /
|
||||||
|
@ -359,10 +359,11 @@ public class DefaultPlotManager extends PlotManager {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean setFloor(Player player, PlotWorld plotworld, PlotId plotid, PlotBlock[] blocks) {
|
public boolean setFloor(Player player, PlotWorld plotworld, PlotId plotid, PlotBlock[] blocks) {
|
||||||
|
DefaultPlotWorld dpw = (DefaultPlotWorld) plotworld;
|
||||||
World world = player.getWorld();
|
World world = player.getWorld();
|
||||||
final Location pos1 = PlotHelper.getPlotBottomLoc(world, plotid).add(1, 0, 1);
|
final Location pos1 = PlotHelper.getPlotBottomLoc(world, plotid).add(1, 0, 1);
|
||||||
final Location pos2 = PlotHelper.getPlotTopLoc(world, plotid);
|
final Location pos2 = PlotHelper.getPlotTopLoc(world, plotid);
|
||||||
PlotHelper.setCuboid(world, pos1, pos2, blocks);
|
PlotHelper.setCuboid(world, new Location(world,pos1.getX(),dpw.PLOT_HEIGHT,pos1.getZ()), new Location(world,pos2.getX()+1,dpw.PLOT_HEIGHT+1,pos2.getZ()+1), blocks);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user