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