Dieser Commit ist enthalten in:
Ursprung
f7440af50a
Commit
187c2a68d0
@ -54,6 +54,7 @@ public class LaufbauCommand extends SWCommand {
|
||||
while (true) {
|
||||
if (!laufbau.hasNext()) {
|
||||
BauSystem.MESSAGE.send("LAUFBAU_DONE", player);
|
||||
laufbau.getEditSession().close();
|
||||
WorldEditUtils.addToPlayer(player, laufbau.getEditSession());
|
||||
cancel();
|
||||
return;
|
||||
|
@ -146,7 +146,7 @@ public class CreatingLaufState implements LaufbauState {
|
||||
}
|
||||
try {
|
||||
editSession.setBlock(BukkitAdapter.asBlockVector(location), BukkitAdapter.adapt(highest.blockData));
|
||||
location.getBlock().setBlockData(highest.blockData, false);
|
||||
// location.getBlock().setBlockData(highest.blockData, false);
|
||||
if (highest.blockConsumer != null) highest.blockConsumer.accept(location.getBlock());
|
||||
} catch (MaxChangedBlocksException e) {
|
||||
e.printStackTrace();
|
||||
@ -190,7 +190,7 @@ public class CreatingLaufState implements LaufbauState {
|
||||
}
|
||||
try {
|
||||
editSession.setBlock(BukkitAdapter.asBlockVector(location), SHELL);
|
||||
location.getBlock().setType(Material.END_STONE, false);
|
||||
// location.getBlock().setType(Material.END_STONE, false);
|
||||
} catch (MaxChangedBlocksException e) {
|
||||
e.printStackTrace();
|
||||
// ingored
|
||||
|
@ -120,20 +120,20 @@ public class Panzern {
|
||||
emptyBlocks.add(currentBlock.getLocation().toVector());
|
||||
return;
|
||||
case SLAB:
|
||||
currentBlock.setType(slabMaterial);
|
||||
// currentBlock.setType(slabMaterial);
|
||||
editSession.setBlock(BukkitAdapter.asBlockVector(currentBlock.getLocation()), slabType);
|
||||
break;
|
||||
case BLOCK:
|
||||
case DEFAULT:
|
||||
currentBlock.setType(blockMaterial);
|
||||
// currentBlock.setType(blockMaterial);
|
||||
editSession.setBlock(BukkitAdapter.asBlockVector(currentBlock.getLocation()), blockType);
|
||||
break;
|
||||
case UNMOVABLE:
|
||||
currentBlock.setType(Material.JUKEBOX);
|
||||
// currentBlock.setType(Material.JUKEBOX);
|
||||
editSession.setBlock(BukkitAdapter.asBlockVector(currentBlock.getLocation()), jukeboxType);
|
||||
break;
|
||||
case UNMOVABLE_SLAB:
|
||||
currentBlock.setType(Material.COBWEB);
|
||||
// currentBlock.setType(Material.COBWEB);
|
||||
editSession.setBlock(BukkitAdapter.asBlockVector(currentBlock.getLocation()), cobwebType);
|
||||
break;
|
||||
default:
|
||||
|
@ -69,6 +69,7 @@ public class PanzernCommand extends SWCommand {
|
||||
while (true) {
|
||||
if (!panzern.hasNext()) {
|
||||
BauSystem.MESSAGE.send("PANZERN_DONE", player);
|
||||
panzern.getEditSession().close();
|
||||
WorldEditUtils.addToPlayer(player, panzern.getEditSession());
|
||||
cancel();
|
||||
return;
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren