Fix Missle Info
Dieser Commit ist enthalten in:
Ursprung
1b21eb2af1
Commit
349948dfda
@ -26,10 +26,13 @@ import com.sk89q.worldedit.extent.clipboard.BlockArrayClipboard;
|
||||
import com.sk89q.worldedit.extent.clipboard.Clipboard;
|
||||
import com.sk89q.worldedit.extent.clipboard.io.ClipboardFormat;
|
||||
import com.sk89q.worldedit.extent.clipboard.io.ClipboardFormats;
|
||||
import com.sk89q.worldedit.extent.transform.BlockTransformExtent;
|
||||
import com.sk89q.worldedit.function.mask.BlockTypeMask;
|
||||
import com.sk89q.worldedit.function.operation.ForwardExtentCopy;
|
||||
import com.sk89q.worldedit.function.operation.Operations;
|
||||
import com.sk89q.worldedit.math.BlockVector3;
|
||||
import com.sk89q.worldedit.math.transform.AffineTransform;
|
||||
import com.sk89q.worldedit.math.transform.Identity;
|
||||
import com.sk89q.worldedit.session.ClipboardHolder;
|
||||
import com.sk89q.worldedit.world.World;
|
||||
import com.sk89q.worldedit.world.block.BlockType;
|
||||
@ -130,11 +133,21 @@ public class Missile extends SpecialItem {
|
||||
return st.toString();
|
||||
}
|
||||
|
||||
private static boolean logged = false;
|
||||
|
||||
private int count() {
|
||||
int tntCount = 0;
|
||||
if (!logged) {
|
||||
Bukkit.getLogger().log(Level.SEVERE, clipboard.toString());
|
||||
Bukkit.getLogger().log(Level.SEVERE, clipboard.getDimensions().toString());
|
||||
Bukkit.getLogger().log(Level.SEVERE, clipboard.getRegion().toString());
|
||||
Bukkit.getLogger().log(Level.SEVERE, clipboard.getMinimumPoint().toString());
|
||||
Bukkit.getLogger().log(Level.SEVERE, clipboard.getMaximumPoint().toString());
|
||||
Bukkit.getLogger().log(Level.SEVERE, clipboard.getBlock(BlockVector3.at(0, 0, 0)).toString());
|
||||
}
|
||||
logged = true;
|
||||
BlockArrayClipboard arrayClipboard = (BlockArrayClipboard)clipboard;
|
||||
BlockVector3 dimensions = arrayClipboard.getDimensions();
|
||||
Bukkit.getLogger().log(Level.SEVERE, arrayClipboard.getBlock(BlockVector3.at(0, 0, 0)).getBlockType().toString());
|
||||
for (int x = 0; x < dimensions.getX(); x++) {
|
||||
for (int y = 0; y < dimensions.getY(); y++) {
|
||||
for (int z = 0; z < dimensions.getZ(); z++) {
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren