From 3a280f3b6a04a6e9b57f4942acd78dfa4af5963a Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Tue, 11 May 2021 19:26:39 +0200 Subject: [PATCH] Fix a few typos --- Core/src/main/java/com/plotsquared/core/command/Auto.java | 2 +- Core/src/main/java/com/plotsquared/core/command/Claim.java | 2 +- Core/src/main/java/com/plotsquared/core/plot/PlotArea.java | 5 ++--- .../main/java/com/plotsquared/core/util/PlotUploader.java | 2 +- .../main/java/com/plotsquared/core/util/RegionManager.java | 2 +- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Core/src/main/java/com/plotsquared/core/command/Auto.java b/Core/src/main/java/com/plotsquared/core/command/Auto.java index 217db445f..4284a9748 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Auto.java +++ b/Core/src/main/java/com/plotsquared/core/command/Auto.java @@ -289,7 +289,7 @@ public class Auto extends SubCommand { player.sendMessage( TranslatableCaption.of("schematics.schematic_invalid_named"), Template.of("schemname", schematic), - Template.of("reason", "non-existant") + Template.of("reason", "non-existent") ); return true; } diff --git a/Core/src/main/java/com/plotsquared/core/command/Claim.java b/Core/src/main/java/com/plotsquared/core/command/Claim.java index b41a3548d..8e286eb51 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Claim.java +++ b/Core/src/main/java/com/plotsquared/core/command/Claim.java @@ -132,7 +132,7 @@ public class Claim extends SubCommand { player.sendMessage( TranslatableCaption.of("schematics.schematic_invalid_named"), Template.of("schemname", schematic), - Template.of("reason", "non-existant") + Template.of("reason", "non-existent") ); } if (!Permissions.hasPermission(player, Permission.PERMISSION_CLAIM_SCHEMATIC diff --git a/Core/src/main/java/com/plotsquared/core/plot/PlotArea.java b/Core/src/main/java/com/plotsquared/core/plot/PlotArea.java index c9f12a903..503b030e4 100644 --- a/Core/src/main/java/com/plotsquared/core/plot/PlotArea.java +++ b/Core/src/main/java/com/plotsquared/core/plot/PlotArea.java @@ -36,7 +36,6 @@ import com.plotsquared.core.configuration.ConfigurationUtil; import com.plotsquared.core.configuration.Settings; import com.plotsquared.core.configuration.caption.CaptionUtility; import com.plotsquared.core.configuration.caption.LocaleHolder; -import com.plotsquared.core.configuration.caption.StaticCaption; import com.plotsquared.core.configuration.caption.TranslatableCaption; import com.plotsquared.core.configuration.file.YamlConfiguration; import com.plotsquared.core.generator.GridPlotWorld; @@ -1195,7 +1194,7 @@ public abstract class PlotArea { * * @param flag The flag type (Any instance of the flag) * @param The flag type (Any instance of the flag) - * @param flag valye type + * @param flag value type * @return The flag value */ public > T getFlag(final V flag) { @@ -1222,7 +1221,7 @@ public abstract class PlotArea { * * @param flag The flag type (Any instance of the flag) * @param The flag type (Any instance of the flag) - * @param flag valye type + * @param flag value type * @return The flag value */ public > T getRoadFlag(final V flag) { diff --git a/Core/src/main/java/com/plotsquared/core/util/PlotUploader.java b/Core/src/main/java/com/plotsquared/core/util/PlotUploader.java index a8c5e5105..d8c2ca1fb 100644 --- a/Core/src/main/java/com/plotsquared/core/util/PlotUploader.java +++ b/Core/src/main/java/com/plotsquared/core/util/PlotUploader.java @@ -173,7 +173,7 @@ public class PlotUploader { /** * Get whether this result is a success. * - * @return {@code true} if this is a sucessful result, {@code false} otherwise. + * @return {@code true} if this is a successful result, {@code false} otherwise. */ public boolean isSuccess() { return success; diff --git a/Core/src/main/java/com/plotsquared/core/util/RegionManager.java b/Core/src/main/java/com/plotsquared/core/util/RegionManager.java index fbd9a53d5..8a1dc85e9 100644 --- a/Core/src/main/java/com/plotsquared/core/util/RegionManager.java +++ b/Core/src/main/java/com/plotsquared/core/util/RegionManager.java @@ -251,7 +251,7 @@ public abstract class RegionManager { public abstract void clearAllEntities(Location pos1, Location pos2); /** - * Swap two regions withn the same world + * Swap two regions within the same world * * @param pos1 position 1 * @param pos2 position 2