From 8d7cf345b4b1182b47cae4ad030066bb6a172bf9 Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Wed, 5 Jun 2019 23:22:53 +0200 Subject: [PATCH 1/3] Update Favs documentation Removed outdated VS wiki links, it appears to be down for some years now, sad times Fixed typos --- .../java/com/thevoxelbox/voxelsniper/brush/BallBrush.java | 6 ++---- .../com/thevoxelbox/voxelsniper/brush/BlendBallBrush.java | 3 --- .../com/thevoxelbox/voxelsniper/brush/BlendDiscBrush.java | 4 +--- .../com/thevoxelbox/voxelsniper/brush/BlendVoxelBrush.java | 3 --- .../thevoxelbox/voxelsniper/brush/BlendVoxelDiscBrush.java | 3 --- .../java/com/thevoxelbox/voxelsniper/brush/BlobBrush.java | 4 +--- .../java/com/thevoxelbox/voxelsniper/brush/CanyonBrush.java | 2 -- .../thevoxelbox/voxelsniper/brush/CanyonSelectionBrush.java | 2 -- .../voxelsniper/brush/CheckerVoxelDiscBrush.java | 2 +- .../com/thevoxelbox/voxelsniper/brush/CleanSnowBrush.java | 4 +--- .../com/thevoxelbox/voxelsniper/brush/CloneStampBrush.java | 2 -- .../com/thevoxelbox/voxelsniper/brush/CopyPastaBrush.java | 2 -- .../com/thevoxelbox/voxelsniper/brush/CylinderBrush.java | 2 +- .../java/com/thevoxelbox/voxelsniper/brush/DiscBrush.java | 4 +--- .../com/thevoxelbox/voxelsniper/brush/DiscFaceBrush.java | 4 +--- .../java/com/thevoxelbox/voxelsniper/brush/DomeBrush.java | 2 -- .../java/com/thevoxelbox/voxelsniper/brush/DrainBrush.java | 4 +--- .../com/thevoxelbox/voxelsniper/brush/EllipseBrush.java | 2 -- .../com/thevoxelbox/voxelsniper/brush/EllipsoidBrush.java | 3 --- .../java/com/thevoxelbox/voxelsniper/brush/EntityBrush.java | 4 +--- .../java/com/thevoxelbox/voxelsniper/brush/EraserBrush.java | 2 -- .../java/com/thevoxelbox/voxelsniper/brush/ErodeBrush.java | 2 -- .../com/thevoxelbox/voxelsniper/brush/ExtrudeBrush.java | 2 -- .../com/thevoxelbox/voxelsniper/brush/FillDownBrush.java | 2 +- .../thevoxelbox/voxelsniper/brush/GenerateTreeBrush.java | 4 +--- .../com/thevoxelbox/voxelsniper/brush/HeatRayBrush.java | 2 -- .../com/thevoxelbox/voxelsniper/brush/JaggedLineBrush.java | 2 -- .../java/com/thevoxelbox/voxelsniper/brush/JockeyBrush.java | 2 -- .../java/com/thevoxelbox/voxelsniper/brush/LineBrush.java | 2 -- .../java/com/thevoxelbox/voxelsniper/brush/MoveBrush.java | 1 - .../java/com/thevoxelbox/voxelsniper/brush/OceanBrush.java | 2 -- .../com/thevoxelbox/voxelsniper/brush/OverlayBrush.java | 4 +--- .../com/thevoxelbox/voxelsniper/brush/PaintingBrush.java | 2 -- .../java/com/thevoxelbox/voxelsniper/brush/PunishBrush.java | 4 +--- .../com/thevoxelbox/voxelsniper/brush/RandomErodeBrush.java | 2 -- .../java/com/thevoxelbox/voxelsniper/brush/RingBrush.java | 4 +--- .../java/com/thevoxelbox/voxelsniper/brush/RulerBrush.java | 4 +--- .../com/thevoxelbox/voxelsniper/brush/ScannerBrush.java | 2 +- .../java/com/thevoxelbox/voxelsniper/brush/SetBrush.java | 2 -- .../thevoxelbox/voxelsniper/brush/SetRedstoneFlipBrush.java | 2 +- .../com/thevoxelbox/voxelsniper/brush/ShellBallBrush.java | 4 +--- .../com/thevoxelbox/voxelsniper/brush/ShellSetBrush.java | 2 -- .../com/thevoxelbox/voxelsniper/brush/ShellVoxelBrush.java | 2 -- .../thevoxelbox/voxelsniper/brush/SignOverwriteBrush.java | 4 +--- .../java/com/thevoxelbox/voxelsniper/brush/SnipeBrush.java | 2 -- .../com/thevoxelbox/voxelsniper/brush/SnowConeBrush.java | 2 -- .../thevoxelbox/voxelsniper/brush/SpiralStaircaseBrush.java | 4 +--- .../thevoxelbox/voxelsniper/brush/SplatterBallBrush.java | 4 +--- .../thevoxelbox/voxelsniper/brush/SplatterDiscBrush.java | 4 +--- .../thevoxelbox/voxelsniper/brush/SplatterOverlayBrush.java | 6 ++---- .../thevoxelbox/voxelsniper/brush/SplatterVoxelBrush.java | 4 +--- .../voxelsniper/brush/SplatterVoxelDiscBrush.java | 4 +--- .../java/com/thevoxelbox/voxelsniper/brush/SplineBrush.java | 2 +- .../voxelsniper/brush/ThreePointCircleBrush.java | 2 -- .../com/thevoxelbox/voxelsniper/brush/TreeSnipeBrush.java | 2 -- .../com/thevoxelbox/voxelsniper/brush/TriangleBrush.java | 2 -- .../com/thevoxelbox/voxelsniper/brush/UnderlayBrush.java | 4 +--- .../com/thevoxelbox/voxelsniper/brush/VoltMeterBrush.java | 2 -- .../java/com/thevoxelbox/voxelsniper/brush/VoxelBrush.java | 2 -- .../com/thevoxelbox/voxelsniper/brush/VoxelDiscBrush.java | 2 -- .../thevoxelbox/voxelsniper/brush/VoxelDiscFaceBrush.java | 2 -- 61 files changed, 30 insertions(+), 143 deletions(-) diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/BallBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/BallBrush.java index 3fbd56d7b..fc6b2ecb2 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/BallBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/BallBrush.java @@ -7,9 +7,7 @@ import com.thevoxelbox.voxelsniper.brush.perform.PerformBrush; import org.bukkit.ChatColor; /** - * A brush that creates a solid ball. - * http://www.voxelwiki.com/minecraft/Voxelsniper#The_Ball_Brush - * + * A brush that creates a solid ball.* * @author Piotr */ public class BallBrush extends PerformBrush { @@ -111,7 +109,7 @@ public class BallBrush extends PerformBrush { this.trueCircle = TRUE_CIRCLE_OFF_VALUE; v.sendMessage(ChatColor.AQUA + "True circle mode OFF."); } else { - v.sendMessage(ChatColor.RED + "Invalid brush parameters! use the info parameter to display parameter info."); + v.sendMessage(ChatColor.RED + "Invalid brush parameters! Use the info parameter to display parameter info."); } } } diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/BlendBallBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/BlendBallBrush.java index 25eda42c1..923ffb5ea 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/BlendBallBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/BlendBallBrush.java @@ -6,9 +6,6 @@ import com.thevoxelbox.voxelsniper.SnipeData; import com.thevoxelbox.voxelsniper.Undo; import org.bukkit.ChatColor; -/** - * http://www.voxelwiki.com/minecraft/Voxelsniper#Blend_Brushes - */ public class BlendBallBrush extends BlendBrushBase { /** * diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/BlendDiscBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/BlendDiscBrush.java index 9601fa78c..3ba9fe78f 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/BlendDiscBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/BlendDiscBrush.java @@ -6,9 +6,7 @@ import com.thevoxelbox.voxelsniper.SnipeData; import com.thevoxelbox.voxelsniper.Undo; import org.bukkit.ChatColor; -/** - * http://www.voxelwiki.com/minecraft/Voxelsniper#Blend_Brushes - */ + public class BlendDiscBrush extends BlendBrushBase { /** * diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/BlendVoxelBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/BlendVoxelBrush.java index 31e34495f..7e69d191f 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/BlendVoxelBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/BlendVoxelBrush.java @@ -6,9 +6,6 @@ import com.thevoxelbox.voxelsniper.SnipeData; import com.thevoxelbox.voxelsniper.Undo; import org.bukkit.ChatColor; -/** - * http://www.voxelwiki.com/minecraft/Voxelsniper#Blend_Brushes - */ public class BlendVoxelBrush extends BlendBrushBase { /** * diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/BlendVoxelDiscBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/BlendVoxelDiscBrush.java index 4721b3d9b..4beee24f7 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/BlendVoxelDiscBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/BlendVoxelDiscBrush.java @@ -6,9 +6,6 @@ import com.thevoxelbox.voxelsniper.SnipeData; import com.thevoxelbox.voxelsniper.Undo; import org.bukkit.ChatColor; -/** - * http://www.voxelwiki.com/minecraft/Voxelsniper#Blend_Brushes - */ public class BlendVoxelDiscBrush extends BlendBrushBase { /** * diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/BlobBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/BlobBrush.java index 90390ff15..8eb588b8b 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/BlobBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/BlobBrush.java @@ -8,8 +8,6 @@ import org.bukkit.ChatColor; import java.util.Random; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#The_Blob_Brush - * * @author Giltwist */ public class BlobBrush extends PerformBrush { @@ -233,7 +231,7 @@ public class BlobBrush extends PerformBrush { v.sendMessage(ChatColor.RED + "Growth percent must be an integer " + GROW_PERCENT_MIN + "-" + GROW_PERCENT_MAX + "!"); } } else { - v.sendMessage(ChatColor.RED + "Invalid brush parameters! use the info parameter to display parameter info."); + v.sendMessage(ChatColor.RED + "Invalid brush parameters! Use the info parameter to display parameter info."); } } } diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/CanyonBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/CanyonBrush.java index 4be9a18ea..bbb5faa95 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/CanyonBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/CanyonBrush.java @@ -12,8 +12,6 @@ import org.bukkit.Material; import org.bukkit.block.Block; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#The_CANYONATOR - * * @author Voxel */ public class CanyonBrush extends Brush { diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/CanyonSelectionBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/CanyonSelectionBrush.java index 9d3f96dfb..7a2b8ab4d 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/CanyonSelectionBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/CanyonSelectionBrush.java @@ -7,8 +7,6 @@ import org.bukkit.ChatColor; import org.bukkit.Chunk; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#The_Canyon_Selection_Brush - * * @author Voxel */ public class CanyonSelectionBrush extends CanyonBrush { diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/CheckerVoxelDiscBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/CheckerVoxelDiscBrush.java index 976327cce..d5b94e765 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/CheckerVoxelDiscBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/CheckerVoxelDiscBrush.java @@ -69,7 +69,7 @@ public class CheckerVoxelDiscBrush extends PerformBrush { this.useWorldCoordinates = false; v.sendMessage(ChatColor.AQUA + "Disabled using World Coordinates."); } else { - v.sendMessage(ChatColor.RED + "Invalid brush parameters! use the info parameter to display parameter info."); + v.sendMessage(ChatColor.RED + "Invalid brush parameters! Use the info parameter to display parameter info."); break; } } diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/CleanSnowBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/CleanSnowBrush.java index 58e6271a2..322bc7a1f 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/CleanSnowBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/CleanSnowBrush.java @@ -8,8 +8,6 @@ import org.bukkit.ChatColor; import org.bukkit.Material; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#Clean_Snow_Brush - * * @author psanker */ public class CleanSnowBrush extends Brush { @@ -80,7 +78,7 @@ public class CleanSnowBrush extends Brush { this.trueCircle = 0; v.sendMessage(ChatColor.AQUA + "True circle mode OFF."); } else { - v.sendMessage(ChatColor.RED + "Invalid brush parameters! use the info parameter to display parameter info."); + v.sendMessage(ChatColor.RED + "Invalid brush parameters! Use the info parameter to display parameter info."); } } } diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/CloneStampBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/CloneStampBrush.java index 79793af7d..13e24012e 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/CloneStampBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/CloneStampBrush.java @@ -6,8 +6,6 @@ import org.bukkit.ChatColor; /** * The CloneStamp class is used to create a collection of blocks in a cylinder shape according to the selection the player has set. - * http://www.voxelwiki.com/minecraft/Voxelsniper#Clone_and_CopyPasta_Brushes - * * @author Voxel */ public class CloneStampBrush extends StampBrush { diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/CopyPastaBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/CopyPastaBrush.java index 445b99eae..02d01195f 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/CopyPastaBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/CopyPastaBrush.java @@ -8,8 +8,6 @@ import com.thevoxelbox.voxelsniper.Undo; import org.bukkit.ChatColor; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#CopyPasta_Brush - * * @author giltwist */ public class CopyPastaBrush extends Brush { diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/CylinderBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/CylinderBrush.java index 0e458e303..80f4a7df8 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/CylinderBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/CylinderBrush.java @@ -104,7 +104,7 @@ public class CylinderBrush extends PerformBrush { v.setcCen((int) Double.parseDouble(parameter.replace("c", ""))); v.sendMessage(ChatColor.AQUA + "Cylinder origin set to: " + v.getcCen()); } else { - v.sendMessage(ChatColor.RED + "Invalid brush parameters! use the info parameter to display parameter info."); + v.sendMessage(ChatColor.RED + "Invalid brush parameters! Use the info parameter to display parameter info."); } } } diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/DiscBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/DiscBrush.java index 671818fd1..fea8020fb 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/DiscBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/DiscBrush.java @@ -8,8 +8,6 @@ import org.bukkit.block.Block; import org.bukkit.util.Vector; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#The_Disc_Brush - * * @author Voxel */ public class DiscBrush extends PerformBrush { @@ -76,7 +74,7 @@ public class DiscBrush extends PerformBrush { this.trueCircle = 0; v.sendMessage(ChatColor.AQUA + "True circle mode OFF."); } else { - v.sendMessage(ChatColor.RED + "Invalid brush parameters! use the info parameter to display parameter info."); + v.sendMessage(ChatColor.RED + "Invalid brush parameters! Use the info parameter to display parameter info."); } } } diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/DiscFaceBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/DiscFaceBrush.java index cd42fcf97..f24ee23b6 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/DiscFaceBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/DiscFaceBrush.java @@ -8,8 +8,6 @@ import org.bukkit.ChatColor; import org.bukkit.block.BlockFace; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#The_Disc_Face_Brush - * * @author Voxel */ public class DiscFaceBrush extends PerformBrush { @@ -139,7 +137,7 @@ public class DiscFaceBrush extends PerformBrush { this.trueCircle = 0; v.sendMessage(ChatColor.AQUA + "True circle mode OFF."); } else { - v.sendMessage(ChatColor.RED + "Invalid brush parameters! use the info parameter to display parameter info."); + v.sendMessage(ChatColor.RED + "Invalid brush parameters! Use the info parameter to display parameter info."); } } } diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/DomeBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/DomeBrush.java index f9895de90..6210ac5b6 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/DomeBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/DomeBrush.java @@ -12,8 +12,6 @@ import java.util.HashSet; import java.util.Set; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#Dome_Brush - * * @author Gavjenks * @author MikeMatrix */ diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/DrainBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/DrainBrush.java index 088a63ca0..c16fdc2c8 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/DrainBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/DrainBrush.java @@ -7,8 +7,6 @@ import com.thevoxelbox.voxelsniper.Undo; import org.bukkit.ChatColor; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#The_Drain_Brush - * * @author Gavjenks * @author psanker */ @@ -123,7 +121,7 @@ public class DrainBrush extends Brush { v.sendMessage(ChatColor.AQUA + "Disc drain mode ON"); } } else { - v.sendMessage(ChatColor.RED + "Invalid brush parameters! use the info parameter to display parameter info."); + v.sendMessage(ChatColor.RED + "Invalid brush parameters! Use the info parameter to display parameter info."); } } } diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/EllipseBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/EllipseBrush.java index 13d05b050..d59f1c706 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/EllipseBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/EllipseBrush.java @@ -7,8 +7,6 @@ import com.thevoxelbox.voxelsniper.brush.perform.PerformBrush; import org.bukkit.ChatColor; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#Ellipse_Brush - * * @author psanker */ public class EllipseBrush extends PerformBrush { diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/EllipsoidBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/EllipsoidBrush.java index 00100bfa6..10c6709de 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/EllipsoidBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/EllipsoidBrush.java @@ -6,9 +6,6 @@ import com.thevoxelbox.voxelsniper.SnipeData; import com.thevoxelbox.voxelsniper.brush.perform.PerformBrush; import org.bukkit.ChatColor; -/** - * http://www.voxelwiki.com/minecraft/Voxelsniper#Ellipsoid_Brush - */ public class EllipsoidBrush extends PerformBrush { private double xRad; private double yRad; diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/EntityBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/EntityBrush.java index 2a9c0c5ee..d8445e73b 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/EntityBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/EntityBrush.java @@ -5,9 +5,7 @@ import com.thevoxelbox.voxelsniper.SnipeData; import org.bukkit.ChatColor; import org.bukkit.entity.EntityType; -/** - * http://www.voxelwiki.com/minecraft/Voxelsniper#The_Entity_Brush - * +/*** * @author Piotr */ public class EntityBrush extends Brush { diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/EraserBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/EraserBrush.java index ca7028ce1..3301b714c 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/EraserBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/EraserBrush.java @@ -11,8 +11,6 @@ import java.util.EnumSet; import java.util.Set; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#Eraser_Brush - * * @author Voxel */ public class EraserBrush extends Brush { diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/ErodeBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/ErodeBrush.java index c8a69fa76..700ae3819 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/ErodeBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/ErodeBrush.java @@ -23,8 +23,6 @@ import org.bukkit.util.Vector; import java.util.*; /** - * http://www.voxelwiki.com/minecraft/VoxelSniper#The_Erosion_Brush - * * @author Piotr * @author MikeMatrix */ diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/ExtrudeBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/ExtrudeBrush.java index 8b1556a21..88c965928 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/ExtrudeBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/ExtrudeBrush.java @@ -8,8 +8,6 @@ import org.bukkit.block.Block; import org.bukkit.block.BlockFace; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#Extrude_Brush - * * @author psanker */ public class ExtrudeBrush extends Brush { diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/FillDownBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/FillDownBrush.java index 24ddb9de2..b99ec1241 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/FillDownBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/FillDownBrush.java @@ -110,7 +110,7 @@ public class FillDownBrush extends PerformBrush { this.fromExisting = !this.fromExisting; v.sendMessage(ChatColor.AQUA + "Now filling down from " + ((this.fromExisting) ? "existing" : "all") + " blocks."); } else { - v.sendMessage(ChatColor.RED + "Invalid brush parameters! use the info parameter to display parameter info."); + v.sendMessage(ChatColor.RED + "Invalid brush parameters! Use the info parameter to display parameter info."); } } } diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/GenerateTreeBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/GenerateTreeBrush.java index c00b09828..bf3b97a1f 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/GenerateTreeBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/GenerateTreeBrush.java @@ -15,8 +15,6 @@ import java.util.Random; // Proposal: Use /v and /vr for leave and wood material // or two more parameters -- Monofraps /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#VoxelTrees_Brush - * * @author Ghost8700 @ Voxel */ public class GenerateTreeBrush extends Brush { @@ -626,7 +624,7 @@ public class GenerateTreeBrush extends Brush { this.nodeMin = 3; v.sendMessage(ChatColor.GOLD + "Brush reset to default parameters."); } else { - v.sendMessage(ChatColor.RED + "Invalid brush parameters! use the info parameter to display parameter info."); + v.sendMessage(ChatColor.RED + "Invalid brush parameters! Use the info parameter to display parameter info."); } } catch (final Exception exception) { v.sendMessage(ChatColor.RED + "Invalid brush parameters! \"" + par[i] + "\" is not a valid statement. Please use the 'info' parameter to display parameter info."); diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/HeatRayBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/HeatRayBrush.java index 53b26e692..a923ca726 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/HeatRayBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/HeatRayBrush.java @@ -14,8 +14,6 @@ import java.util.ArrayList; import java.util.Random; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#The_Heat_Ray - * * @author Gavjenks */ public class HeatRayBrush extends Brush { diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/JaggedLineBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/JaggedLineBrush.java index 43d7ea631..59b3ba4f3 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/JaggedLineBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/JaggedLineBrush.java @@ -13,8 +13,6 @@ import org.bukkit.util.Vector; import java.util.Random; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#Jagged_Line_Brush - * * @author Giltwist * @author Monofraps */ diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/JockeyBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/JockeyBrush.java index 74197c72b..ac09825e5 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/JockeyBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/JockeyBrush.java @@ -13,8 +13,6 @@ import org.bukkit.event.player.PlayerTeleportEvent; import java.util.List; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#The_Jockey_Brush - * * @author Voxel * @author Monofraps */ diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/LineBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/LineBrush.java index 604f41a97..0d6d36ff3 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/LineBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/LineBrush.java @@ -11,8 +11,6 @@ import org.bukkit.util.NumberConversions; import org.bukkit.util.Vector; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#Line_Brush - * * @author Gavjenks * @author giltwist * @author MikeMatrix diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/MoveBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/MoveBrush.java index f2e712456..76c6718ac 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/MoveBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/MoveBrush.java @@ -17,7 +17,6 @@ import java.util.HashSet; /** * Moves a selection blockPositionY a certain amount. - * http://www.voxelwiki.com/minecraft/Voxelsniper#Move_Brush * * @author MikeMatrix */ diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/OceanBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/OceanBrush.java index 70a450f68..4236f1a2e 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/OceanBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/OceanBrush.java @@ -10,8 +10,6 @@ import org.bukkit.Material; import org.bukkit.block.Block; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#The_OCEANATOR_5000 - * * @author Voxel */ public class OceanBrush extends Brush { diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/OverlayBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/OverlayBrush.java index a7e1f98ed..807ee5473 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/OverlayBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/OverlayBrush.java @@ -11,8 +11,6 @@ import com.thevoxelbox.voxelsniper.brush.perform.PerformBrush; import org.bukkit.ChatColor; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#The_Overlay_.2F_Topsoil_Brush - * * @author Gavjenks */ public class OverlayBrush extends PerformBrush { @@ -207,7 +205,7 @@ public class OverlayBrush extends PerformBrush { ChatColor.BLUE + "Will overlay only natural block types." + this.depth); } else { v.sendMessage(ChatColor.RED - + "Invalid brush parameters! use the info parameter to display parameter info."); + + "Invalid brush parameters! Use the info parameter to display parameter info."); } } } diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/PaintingBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/PaintingBrush.java index 782b73de8..18e5bdaa2 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/PaintingBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/PaintingBrush.java @@ -6,8 +6,6 @@ import com.thevoxelbox.voxelsniper.SnipeData; /** * Painting scrolling Brush. - * http://www.voxelwiki.com/minecraft/Voxelsniper#The_Painting_Picker_Brush - * * @author Voxel */ public class PaintingBrush extends Brush { diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/PunishBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/PunishBrush.java index 96452c027..5fab0e30e 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/PunishBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/PunishBrush.java @@ -20,8 +20,6 @@ import java.util.List; import java.util.Random; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#Punish_Brush - * * @author Monofraps * @author Deamon * @author MikeMatrix @@ -213,7 +211,7 @@ public class PunishBrush extends PerformBrush { } } catch (final Exception exception) { exception.printStackTrace(); - v.sendMessage("An error occured."); + v.sendMessage("An error occurred."); return; } } else if (v.getBrushSize() == PunishBrush.INFINIPUNISH_SIZE) { diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/RandomErodeBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/RandomErodeBrush.java index 933c10668..9261f33e6 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/RandomErodeBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/RandomErodeBrush.java @@ -9,8 +9,6 @@ import com.thevoxelbox.voxelsniper.Undo; import java.util.Random; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#The_Random-Erode_Brush - * * @author Piotr * @author Giltwist (Randomized blockPositionY) */ diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/RingBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/RingBrush.java index 33c5c60b3..4f89e89d5 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/RingBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/RingBrush.java @@ -7,8 +7,6 @@ import com.thevoxelbox.voxelsniper.brush.perform.PerformBrush; import org.bukkit.ChatColor; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#Ring_Brush - * * @author Voxel */ public class RingBrush extends PerformBrush { @@ -83,7 +81,7 @@ public class RingBrush extends PerformBrush { v.sendMessage(ChatColor.RED + "The parameters included are invalid."); } } else { - v.sendMessage(ChatColor.RED + "Invalid brush parameters! use the info parameter to display parameter info."); + v.sendMessage(ChatColor.RED + "Invalid brush parameters! Use the info parameter to display parameter info."); } } } diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/RulerBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/RulerBrush.java index f051be30c..5b9cc55bc 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/RulerBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/RulerBrush.java @@ -7,8 +7,6 @@ import org.bukkit.ChatColor; import org.bukkit.util.Vector; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#The_Ruler_Brush - * * @author Gavjenks */ public class RulerBrush extends Brush { @@ -93,7 +91,7 @@ public class RulerBrush extends Brush { this.xOff = 0; v.sendMessage(ChatColor.BLUE + "Ruler mode."); } else { - v.sendMessage(ChatColor.RED + "Invalid brush parameters! use the info parameter to display parameter info."); + v.sendMessage(ChatColor.RED + "Invalid brush parameters! Use the info parameter to display parameter info."); } } } diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/ScannerBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/ScannerBrush.java index e4222fece..5282c6a32 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/ScannerBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/ScannerBrush.java @@ -150,7 +150,7 @@ public class ScannerBrush extends Brush { this.depth = this.clamp(Integer.parseInt(par[i].substring(1)), DEPTH_MIN, DEPTH_MAX); v.sendMessage(ChatColor.AQUA + "Scanner depth set to " + this.depth); } else { - v.sendMessage(ChatColor.RED + "Invalid brush parameters! use the info parameter to display parameter info."); + v.sendMessage(ChatColor.RED + "Invalid brush parameters! Use the info parameter to display parameter info."); } } } diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SetBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SetBrush.java index 12aa2e0b6..453c64e44 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SetBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SetBrush.java @@ -7,8 +7,6 @@ import org.bukkit.ChatColor; import org.bukkit.block.Block; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#Set_Brush - * * @author Voxel */ public class SetBrush extends PerformBrush { diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SetRedstoneFlipBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SetRedstoneFlipBrush.java index a4999171a..fcd0e0465 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SetRedstoneFlipBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SetRedstoneFlipBrush.java @@ -110,7 +110,7 @@ public class SetRedstoneFlipBrush extends Brush { this.northSouth = false; v.sendMessage(ChatColor.AQUA + "Flip direction set to east/west."); } else { - v.sendMessage(ChatColor.RED + "Invalid brush parameters! use the info parameter to display parameter info."); + v.sendMessage(ChatColor.RED + "Invalid brush parameters! Use the info parameter to display parameter info."); } } } diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/ShellBallBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/ShellBallBrush.java index 36164847b..b15802e76 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/ShellBallBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/ShellBallBrush.java @@ -8,8 +8,6 @@ import org.bukkit.block.Block; /** * THIS BRUSH SHOULD NOT USE PERFORMERS. - * http://www.voxelwiki.com/minecraft/Voxelsniper#Shell_Brushes - * * @author Voxel */ public class ShellBallBrush extends Brush { @@ -103,7 +101,7 @@ public class ShellBallBrush extends Brush { } v.owner().storeUndo(undo); - // This is needed because most uses of this brush will not be sible to the sniper. + // This is needed because most uses of this brush will not be sible to the sible sniper. v.owner().getPlayer().sendMessage(ChatColor.AQUA + "Shell complete."); } diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/ShellSetBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/ShellSetBrush.java index 5e939e4a9..461cf9808 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/ShellSetBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/ShellSetBrush.java @@ -10,8 +10,6 @@ import org.bukkit.block.Block; import java.util.ArrayList; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#Shell_Brushes - * * @author Piotr */ public class ShellSetBrush extends Brush { diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/ShellVoxelBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/ShellVoxelBrush.java index 6b77ddaa4..b07114213 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/ShellVoxelBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/ShellVoxelBrush.java @@ -8,8 +8,6 @@ import org.bukkit.block.Block; /** * THIS BRUSH SHOULD NOT USE PERFORMERS. - * http://www.voxelwiki.com/minecraft/Voxelsniper#Shell_Brushes - * * @author Voxel */ public class ShellVoxelBrush extends Brush { diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SignOverwriteBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SignOverwriteBrush.java index b427ac892..022460179 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SignOverwriteBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SignOverwriteBrush.java @@ -11,9 +11,7 @@ import java.io.*; import java.util.Arrays; /** - * Overwrites signs. (Wiki: - * http://www.voxelwiki.com/minecraft/VoxelSniper#Sign_Overwrite_Brush) - * + * Overwrites signs. * @author Monofraps */ public class SignOverwriteBrush extends Brush { diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SnipeBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SnipeBrush.java index 57ebee6b3..871b736b2 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SnipeBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SnipeBrush.java @@ -5,8 +5,6 @@ import com.thevoxelbox.voxelsniper.SnipeData; import com.thevoxelbox.voxelsniper.brush.perform.PerformBrush; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#The_Snipe_Brush - * * @author Voxel */ public class SnipeBrush extends PerformBrush { diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SnowConeBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SnowConeBrush.java index 3e8e543d7..7bf188939 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SnowConeBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SnowConeBrush.java @@ -13,8 +13,6 @@ import org.bukkit.block.Block; import org.bukkit.block.BlockFace; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#Snow_cone_brush - * * @author Voxel */ public class SnowConeBrush extends Brush { diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SpiralStaircaseBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SpiralStaircaseBrush.java index f6e035a32..d6627956f 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SpiralStaircaseBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SpiralStaircaseBrush.java @@ -10,8 +10,6 @@ import org.bukkit.ChatColor; import org.bukkit.block.Block; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#Spiral_Staircase_Brush - * * @author giltwist */ public class SpiralStaircaseBrush extends Brush { @@ -540,7 +538,7 @@ public class SpiralStaircaseBrush extends Brush { this.sopen = par[i]; v.sendMessage(ChatColor.BLUE + "Staircase opens: " + this.sopen); } else { - v.sendMessage(ChatColor.RED + "Invalid brush parameters! use the info parameter to display parameter info."); + v.sendMessage(ChatColor.RED + "Invalid brush parameters! Use the info parameter to display parameter info."); } } } diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SplatterBallBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SplatterBallBrush.java index 77da630cf..ecef9498b 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SplatterBallBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SplatterBallBrush.java @@ -9,8 +9,6 @@ import org.bukkit.ChatColor; import java.util.Random; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#Splatter_Brushes - * * @author Voxel */ public class SplatterBallBrush extends PerformBrush { @@ -211,7 +209,7 @@ public class SplatterBallBrush extends PerformBrush { v.sendMessage(ChatColor.RED + "Recursions must be an integer 1-10!"); } } else { - v.sendMessage(ChatColor.RED + "Invalid brush parameters! use the info parameter to display parameter info."); + v.sendMessage(ChatColor.RED + "Invalid brush parameters! Use the info parameter to display parameter info."); } } } diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SplatterDiscBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SplatterDiscBrush.java index 14737c566..0b09d4a25 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SplatterDiscBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SplatterDiscBrush.java @@ -9,8 +9,6 @@ import org.bukkit.ChatColor; import java.util.Random; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#Splatter_Brushes - * * @author Voxel */ public class SplatterDiscBrush extends PerformBrush { @@ -186,7 +184,7 @@ public class SplatterDiscBrush extends PerformBrush { v.sendMessage(ChatColor.RED + "Recursions must be an integer 1-10!"); } } else { - v.sendMessage(ChatColor.RED + "Invalid brush parameters! use the info parameter to display parameter info."); + v.sendMessage(ChatColor.RED + "Invalid brush parameters! Use the info parameter to display parameter info."); } } } diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SplatterOverlayBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SplatterOverlayBrush.java index e1ac77253..e0c0dabc9 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SplatterOverlayBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SplatterOverlayBrush.java @@ -11,8 +11,6 @@ import org.bukkit.ChatColor; import java.util.Random; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#Splatter_Overlay_Brush - * * @author Gavjenks Splatterized blockPositionY Giltwist */ public class SplatterOverlayBrush extends PerformBrush { @@ -338,10 +336,10 @@ public class SplatterOverlayBrush extends PerformBrush { v.sendMessage(ChatColor.RED + "Recursions must be an integer 1-10!"); } } else { - v.sendMessage(ChatColor.RED + "Invalid brush parameters! use the info parameter to display parameter info."); + v.sendMessage(ChatColor.RED + "Invalid brush parameters! Use the info parameter to display parameter info."); } } catch (Exception exception) { - v.sendMessage(String.format("An error occured while processing parameter %s.", parameter)); + v.sendMessage(String.format("An error occurred while processing parameter %s.", parameter)); } } } diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SplatterVoxelBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SplatterVoxelBrush.java index 5c8c23313..227515c5a 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SplatterVoxelBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SplatterVoxelBrush.java @@ -9,8 +9,6 @@ import org.bukkit.ChatColor; import java.util.Random; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#Splatter_Brushes - * * @author Voxel */ public class SplatterVoxelBrush extends PerformBrush { @@ -201,7 +199,7 @@ public class SplatterVoxelBrush extends PerformBrush { v.sendMessage(ChatColor.RED + "Recursions must be an integer 1-10!"); } } else { - v.sendMessage(ChatColor.RED + "Invalid brush parameters! use the info parameter to display parameter info."); + v.sendMessage(ChatColor.RED + "Invalid brush parameters! Use the info parameter to display parameter info."); } } } diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SplatterVoxelDiscBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SplatterVoxelDiscBrush.java index 98193318a..ab46d683f 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SplatterVoxelDiscBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SplatterVoxelDiscBrush.java @@ -9,8 +9,6 @@ import org.bukkit.block.Block; import java.util.Random; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#Splatter_Brushes - * * @author Voxel */ public class SplatterVoxelDiscBrush extends PerformBrush { @@ -184,7 +182,7 @@ public class SplatterVoxelDiscBrush extends PerformBrush { v.sendMessage(ChatColor.RED + "Recursions must be an integer 1-10!"); } } else { - v.sendMessage(ChatColor.RED + "Invalid brush parameters! use the info parameter to display parameter info."); + v.sendMessage(ChatColor.RED + "Invalid brush parameters! Use the info parameter to display parameter info."); } } } diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SplineBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SplineBrush.java index feb1db787..cbfb580d6 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SplineBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/SplineBrush.java @@ -181,7 +181,7 @@ public class SplineBrush extends PerformBrush { this.render(v); } } else { - v.sendMessage(ChatColor.RED + "Invalid brush parameters! use the info parameter to display parameter info."); + v.sendMessage(ChatColor.RED + "Invalid brush parameters! Use the info parameter to display parameter info."); } } } diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/ThreePointCircleBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/ThreePointCircleBrush.java index d1d60a8be..336a5c9f7 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/ThreePointCircleBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/ThreePointCircleBrush.java @@ -8,8 +8,6 @@ import org.bukkit.util.NumberConversions; import org.bukkit.util.Vector; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#Three-Point_Circle_Brush - * * @author Giltwist */ public class ThreePointCircleBrush extends PerformBrush { diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/TreeSnipeBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/TreeSnipeBrush.java index 4da34453d..f1e8af909 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/TreeSnipeBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/TreeSnipeBrush.java @@ -14,8 +14,6 @@ import org.bukkit.block.BlockFace; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#The_Tree_Brush - * * @author Mick */ public class TreeSnipeBrush extends Brush { diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/TriangleBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/TriangleBrush.java index 30b93a3c1..d3c46ebff 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/TriangleBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/TriangleBrush.java @@ -6,8 +6,6 @@ import com.thevoxelbox.voxelsniper.brush.perform.PerformBrush; import org.bukkit.ChatColor; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#Triangle_Brush - * * @author Giltwist */ public class TriangleBrush extends PerformBrush { diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/UnderlayBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/UnderlayBrush.java index 9313e761d..5e6324dbe 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/UnderlayBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/UnderlayBrush.java @@ -8,8 +8,6 @@ import com.thevoxelbox.voxelsniper.brush.perform.PerformBrush; import org.bukkit.ChatColor; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#Underlay_Brush - * * @author jmck95 Credit to GavJenks for framework and 95 of code. Big Thank you to GavJenks */ @@ -148,7 +146,7 @@ public class UnderlayBrush extends PerformBrush { this.allBlocks = false; v.owner().getPlayer().sendMessage(ChatColor.BLUE + "Will underlay only natural block types." + this.depth); } else { - v.owner().getPlayer().sendMessage(ChatColor.RED + "Invalid brush parameters! use the info parameter to display parameter info."); + v.owner().getPlayer().sendMessage(ChatColor.RED + "Invalid brush parameters! Use the info parameter to display parameter info."); } } } diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/VoltMeterBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/VoltMeterBrush.java index 5d6abc656..049937bdd 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/VoltMeterBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/VoltMeterBrush.java @@ -8,8 +8,6 @@ import org.bukkit.block.Block; import org.bukkit.block.BlockFace; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#The_Volt-Meter_Brush - * * @author Gavjenks */ public class VoltMeterBrush extends Brush { diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/VoxelBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/VoxelBrush.java index 89cffd3fa..6aa422c91 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/VoxelBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/VoxelBrush.java @@ -5,8 +5,6 @@ import com.thevoxelbox.voxelsniper.SnipeData; import com.thevoxelbox.voxelsniper.brush.perform.PerformBrush; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#The_Voxel_Brush - * * @author Piotr */ public class VoxelBrush extends PerformBrush { diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/VoxelDiscBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/VoxelDiscBrush.java index 12d468891..75d188cc6 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/VoxelDiscBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/VoxelDiscBrush.java @@ -6,8 +6,6 @@ import com.thevoxelbox.voxelsniper.SnipeData; import com.thevoxelbox.voxelsniper.brush.perform.PerformBrush; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#The_Voxel_Disc_Brush - * * @author Voxel */ public class VoxelDiscBrush extends PerformBrush { diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/VoxelDiscFaceBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/VoxelDiscFaceBrush.java index 320e7c8e6..3f277eb90 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/VoxelDiscFaceBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/VoxelDiscFaceBrush.java @@ -7,8 +7,6 @@ import org.bukkit.block.Block; import org.bukkit.block.BlockFace; /** - * http://www.voxelwiki.com/minecraft/Voxelsniper#The_Voxel_Disc_Face_Brush - * * @author Voxel */ public class VoxelDiscFaceBrush extends PerformBrush { From c77ee07fcd4993c4971e834e705b234c307bc213 Mon Sep 17 00:00:00 2001 From: George Lin <17georgel@gmail.com> Date: Thu, 6 Jun 2019 15:34:45 +0800 Subject: [PATCH 2/3] Fix incorrect casting of CharSequence to String --- .../main/java/com/sk89q/worldedit/util/Direction.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/util/Direction.java b/worldedit-core/src/main/java/com/sk89q/worldedit/util/Direction.java index fa1d4d1a1..9948350fd 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/util/Direction.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/util/Direction.java @@ -22,13 +22,8 @@ package com.sk89q.worldedit.util; import com.sk89q.worldedit.math.BlockVector3; import com.sk89q.worldedit.math.Vector3; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Optional; -import java.util.OptionalInt; - import javax.annotation.Nullable; +import java.util.*; /** * A collection of cardinal, ordinal, and secondary-ordinal directions. @@ -87,7 +82,7 @@ public enum Direction { } public static Direction get(CharSequence sequence) { - return map.get((String)sequence); + return map.get(sequence.toString()); } public Direction getLeft() { From 3180d9d3c2c082461bcc25689cccdfd01ddc834f Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Thu, 6 Jun 2019 13:50:28 +0200 Subject: [PATCH 3/3] OCD --- .../main/java/com/thevoxelbox/voxelsniper/brush/BallBrush.java | 2 +- .../java/com/thevoxelbox/voxelsniper/brush/BlendDiscBrush.java | 1 - .../java/com/thevoxelbox/voxelsniper/brush/EntityBrush.java | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/BallBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/BallBrush.java index fc6b2ecb2..c772aa85d 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/BallBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/BallBrush.java @@ -7,7 +7,7 @@ import com.thevoxelbox.voxelsniper.brush.perform.PerformBrush; import org.bukkit.ChatColor; /** - * A brush that creates a solid ball.* + * A brush that creates a solid ball. * @author Piotr */ public class BallBrush extends PerformBrush { diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/BlendDiscBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/BlendDiscBrush.java index 3ba9fe78f..fce30ec1a 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/BlendDiscBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/BlendDiscBrush.java @@ -6,7 +6,6 @@ import com.thevoxelbox.voxelsniper.SnipeData; import com.thevoxelbox.voxelsniper.Undo; import org.bukkit.ChatColor; - public class BlendDiscBrush extends BlendBrushBase { /** * diff --git a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/EntityBrush.java b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/EntityBrush.java index d8445e73b..40cae9326 100644 --- a/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/EntityBrush.java +++ b/favs/src/main/java/com/thevoxelbox/voxelsniper/brush/EntityBrush.java @@ -5,7 +5,7 @@ import com.thevoxelbox.voxelsniper.SnipeData; import org.bukkit.ChatColor; import org.bukkit.entity.EntityType; -/*** +/** * @author Piotr */ public class EntityBrush extends Brush {