Spelling Corrections

This commit is contained in:
Matt
2016-02-04 18:45:50 -05:00
parent 692ad5db81
commit 8d6b412dc8
19 changed files with 40 additions and 38 deletions

View File

@ -19,7 +19,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
command = "debugpaste",
aliases = { "dp" },
usage = "/plot debugpaste",
description = "Upload settings.yml & latest.log to hastebin",
description = "Upload settings.yml & latest.log to HasteBin",
permission = "plots.debugpaste",
category = CommandCategory.DEBUG)
public class DebugPaste extends SubCommand {

View File

@ -164,7 +164,7 @@ public class Setup extends SubCommand {
MainUtil.sendMessage(plr, "&6What terrain would you like in plots?"
+ "\n&8 - &2NONE&8 - &7No terrain at all"
+ "\n&8 - &7ORE&8 - &7Just some ore veins and trees"
+ "\n&8 - &7ROAD&8 - &7Terrain seperated by roads"
+ "\n&8 - &7ROAD&8 - &7Terrain separated by roads"
+ "\n&8 - &7ALL&8 - &7Entirely vanilla generation");
}
object.current++;
@ -176,7 +176,7 @@ public class Setup extends SubCommand {
MainUtil.sendMessage(plr, "&cYou must choose the terrain!"
+ "\n&8 - &2NONE&8 - &7No terrain at all"
+ "\n&8 - &7ORE&8 - &7Just some ore veins and trees"
+ "\n&8 - &7ROAD&8 - &7Terrain seperated by roads"
+ "\n&8 - &7ROAD&8 - &7Terrain separated by roads"
+ "\n&8 - &7ALL&8 - &7Entirely vanilla generation");
return false;
}
@ -243,7 +243,7 @@ public class Setup extends SubCommand {
try {
plr.teleport(BlockManager.manager.getSpawn(world));
} catch (final Exception e) {
plr.sendMessage("&cAn error occured. See console for more information");
plr.sendMessage("&cAn error occurred. See console for more information");
e.printStackTrace();
}
sendMessage(plr, C.SETUP_FINISHED, object.world);

View File

@ -22,10 +22,12 @@ package com.intellectualcrafters.plot.commands;
import com.intellectualcrafters.plot.config.C;
import com.intellectualcrafters.plot.object.PlotPlayer;
import com.intellectualcrafters.plot.util.MainUtil;
/**
* SubCommand class
*
*
*/
@SuppressWarnings({ "deprecation" })
public abstract class SubCommand extends com.plotsquared.general.commands.Command<PlotPlayer> {
@ -38,11 +40,11 @@ public abstract class SubCommand extends com.plotsquared.general.commands.Comman
/**
* Send a message
*
*
* @param plr Player who will receive the message
* @param c Caption
* @param args Arguments (%s's)
*
*
* @see MainUtil#sendMessage(PlotPlayer, C, String...)
*/
public boolean sendMessage(final PlotPlayer plr, final C c, final String... args) {
c.send(plr, args);

View File

@ -129,7 +129,7 @@ public class Template extends SubCommand {
return true;
}
}
MainUtil.sendMessage(plr, C.COMMAND_SYNTAX, "/plot template <import|explort> <world> [template]");
MainUtil.sendMessage(plr, C.COMMAND_SYNTAX, "/plot template <import|export> <world> [template]");
return true;
}
final String world = args[1];

View File

@ -486,7 +486,7 @@ public class DBFunc {
}
/**
* Replace all occurances of a uuid in the database with another one
* Replace all occurrences of a uuid in the database with another one
* @param old
* @param now
*/

View File

@ -372,7 +372,7 @@ public class FlagManager {
}
/**
* Get a list of registerd AbstragFlag objects based on player permissions
* Get a list of registered AbstractFlag objects based on player permissions
*
* @param player with permissions
*

View File

@ -13,7 +13,7 @@ import com.intellectualcrafters.plot.util.SetBlockQueue;
import java.util.ArrayList;
/**
* A plot manager with square plots which tesselate on a square grid with the following sections: ROAD, WALL, BORDER (wall), PLOT, FLOOR (plot)
* A plot manager with square plots which tessellate on a square grid with the following sections: ROAD, WALL, BORDER (wall), PLOT, FLOOR (plot)
*/
public class ClassicPlotManager extends SquarePlotManager {
@Override

View File

@ -2306,7 +2306,7 @@ public class MainUtil {
/**
* Send a message to the player
*
* @param plr Player to recieve message
* @param plr Player to receive message
* @param msg Message to send
*
* @return true Can be used in things such as commands (return PlayerFunctions.sendMessage(...))
@ -2345,7 +2345,7 @@ public class MainUtil {
/**
* Send a message to the player
*
* @param plr Player to recieve message
* @param plr Player to receive message
* @param c Caption to send
*
* @return boolean success
@ -2357,7 +2357,7 @@ public class MainUtil {
/**
* Send a message to the player
*
* @param plr Player to recieve message
* @param plr Player to receive message
* @param c Caption to send
*
* @return boolean success

View File

@ -10,21 +10,21 @@ import com.intellectualcrafters.plot.util.MainUtil;
public class HelpPage {
private final List<HelpObject> _helpObjecs;
private final List<HelpObject> helpObjects;
private final String _header;
public HelpPage(final CommandCategory category, final int currentPage, final int maxPages) {
_helpObjecs = new ArrayList<>();
helpObjects = new ArrayList<>();
_header = C.HELP_PAGE_HEADER.s().replace("%category%", category == null ? "ALL" : category.toString()).replace("%current%", (currentPage + 1) + "").replace("%max%", (maxPages + 1) + "");
}
public void render(final PlotPlayer player) {
if (_helpObjecs.size() < 1) {
if (helpObjects.size() < 1) {
MainUtil.sendMessage(player, C.NOT_VALID_NUMBER, "(0)");
} else {
MainUtil.sendMessage(player, C.HELP_HEADER.s(), false);
MainUtil.sendMessage(player, _header, false);
for (final HelpObject object : _helpObjecs) {
for (final HelpObject object : helpObjects) {
MainUtil.sendMessage(player, object.toString(), false);
}
MainUtil.sendMessage(player, C.HELP_FOOTER.s(), false);
@ -32,6 +32,6 @@ public class HelpPage {
}
public void addHelpItem(final HelpObject object) {
_helpObjecs.add(object);
helpObjects.add(object);
}
}