Minor cleanup

This commit is contained in:
NotMyFault 2018-10-20 14:03:21 +02:00
parent b6d4872ca4
commit 302051a6ca
16 changed files with 34 additions and 22 deletions

View File

@ -18,7 +18,7 @@ import java.util.UUID;
@CommandDeclaration(
command = "add",
description = "Allow a user to build while you are online",
description = "Allow a user to build in a plot while you are online",
usage = "/plot add <player>",
category = CommandCategory.SETTINGS,
permission = "plots.add",

View File

@ -15,7 +15,7 @@ import com.plotsquared.general.commands.Command;
import com.plotsquared.general.commands.CommandDeclaration;
@CommandDeclaration(command = "clear",
description = "Clear a plot",
description = "Clear the plot you stand on",
permission = "plots.clear",
category = CommandCategory.APPEARANCE,
usage = "/plot clear",

View File

@ -17,14 +17,17 @@ import com.plotsquared.general.commands.CommandDeclaration;
@CommandDeclaration(
command = "delete",
permission = "plots.delete",
description = "Delete a plot",
description = "Delete the plot you stand on",
usage = "/plot delete",
aliases = {"dispose", "del", "reset"},
aliases = {"dispose", "del"},
category = CommandCategory.CLAIMING,
requiredType = RequiredType.NONE,
confirmation = true)
public class Delete extends SubCommand {
// Note: To delete a specific plot use /plot <plot> delete
// The syntax also works with any command: /plot <plot> <command>
@Override
public boolean onCommand(final PlotPlayer player, String[] args) {

View File

@ -21,7 +21,7 @@ import java.util.UUID;
aliases = {"k"},
description = "Kick a player from your plot",
permission = "plots.kick",
usage = "<player>",
usage = "/plot kick <player>",
category = CommandCategory.TELEPORT,
requiredType = RequiredType.NONE)
public class Kick extends SubCommand {

View File

@ -25,7 +25,7 @@ import java.util.List;
requiredType = RequiredType.NONE,
description = "Load your plot",
permission = "plots.load",
usage = "/plot restore")
usage = "/plot load")
public class Load extends SubCommand {
@Override

View File

@ -14,7 +14,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
@CommandDeclaration(
command = "music",
permission = "plots.music",
description = "Player music in a plot",
description = "Play music in your plot",
usage = "/plot music",
category = CommandCategory.APPEARANCE,
requiredType = RequiredType.PLAYER)

View File

@ -11,6 +11,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
@CommandDeclaration(command = "plugin",
permission = "plots.use",
description = "Show plugin information",
usage = "/plot plugin",
aliases = "version",
category = CommandCategory.INFO)
public class PluginCmd extends SubCommand {

View File

@ -13,7 +13,10 @@ import com.plotsquared.general.commands.Command;
import com.plotsquared.general.commands.CommandDeclaration;
import java.util.HashSet;
@CommandDeclaration(command = "relight", description = "Relight your plot", category = CommandCategory.DEBUG)
@CommandDeclaration(command = "relight",
description = "Relight your plot",
usage = "/plot relight",
category = CommandCategory.DEBUG)
public class Relight extends Command {
public Relight() {
super(MainCommand.getInstance(), true);

View File

@ -14,8 +14,9 @@ import java.io.IOException;
import java.util.Objects;
@CommandDeclaration(command = "reload",
aliases = "rl",
permission = "plots.admin.command.reload",
description = "Reload configurations",
description = "Reload translations and world settings",
usage = "/plot reload",
category = CommandCategory.ADMINISTRATION)
public class Reload extends SubCommand {

View File

@ -25,7 +25,7 @@ import java.util.UUID;
command = "schematic",
permission = "plots.schematic",
description = "Schematic command",
aliases = {"sch"},
aliases = {"sch", "schem"},
category = CommandCategory.SCHEMATIC,
usage = "/plot schematic <arg...>")
public class SchematicCmd extends SubCommand {

View File

@ -11,7 +11,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
@CommandDeclaration(
command = "sethome",
permission = "plots.set.home",
description = "Set the plot home",
description = "Set the plot home to your current position",
usage = "/plot sethome [none]",
aliases = {"sh", "seth"},
category = CommandCategory.SETTINGS,
@ -22,6 +22,7 @@ public class SetHome extends SetCommand {
public boolean set(PlotPlayer player, Plot plot, String value) {
switch (value.toLowerCase()) {
case "unset":
case "reset":
case "remove":
case "none": {
Plot base = plot.getBasePlot(false);

View File

@ -21,7 +21,7 @@ import java.util.UUID;
aliases = {"t"},
requiredType = RequiredType.NONE,
usage = "/plot trust <player>",
description = "Allow a player to build in a plot",
description = "Allow a user to build in a plot while you are offline",
category = CommandCategory.SETTINGS)
public class Trust extends Command {

View File

@ -38,6 +38,6 @@ public class GameModeFlag extends Flag<PlotGameMode> {
@Override
public String getValueDescription() {
return "Flag value must be a gamemode: 'creative' , 'survival', 'adventure' or 'spectator'";
return "Flag value must be a gamemode: 'survival', 'creative', 'adventure' or 'spectator'";
}
}

View File

@ -26,6 +26,6 @@ public class IntegerListFlag extends ListFlag<List<Integer>> {
}
@Override public String getValueDescription() {
return "Flag value must be a integer list";
return "Flag value must be an integer list";
}
}

View File

@ -31,6 +31,6 @@ public class PlotWeatherFlag extends Flag<PlotWeather> {
}
@Override public String getValueDescription() {
return "";
return "Flag must be a weather: 'rain' or 'sun'";
}
}

View File

@ -1,6 +1,9 @@
# PlotSquared [![forthebadge](http://forthebadge.com/images/badges/built-by-developers.svg)](http://forthebadge.com)
<p align="center">
<img src="https://i.imgur.com/Kd7N6uf.png">
</p>
---
[![Join the chat at https://gitter.im/PlotSquared/Lobby](https://badges.gitter.im/PlotSquared/Lobby.svg)](https://gitter.im/PlotSquared/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
For the end user, PlotSquared is packed with a tonne of cool features.
It allows you to merge plots, and build together with your friends.
You can also change a lot of plot specific settings in the form of
@ -11,15 +14,15 @@ is to provide a lag-free and smooth experience.
## Links
### Server Owner
* [Download](https://github.com/IntellectualSites/PlotSquared/releases/tag/dev)
* [Jenkins](https://ci.athion.net/job/PlotSquared/)
* [Spigot Page](https://www.spigotmc.org/resources/plotsquared.1177/)
* [WebChat/IRC]: #IntellectualCrafters on irc.esper.net
* [Discord](https://discord.gg/ngZCzbU)
* [Wiki](https://github.com/intellectualcrafters/plotsquared/wiki)
* [Website](http://plotsquared.com)
### Developer Resources
* [JavaDocs] Link Temporarily Unavailable
* [Build Server] [![Build Status](http://ci.plotsquared.com/buildStatus/icon?job=PlotSquared)](http://ci.athion.net/job/PlotSquared/)
* [Maven Repo] Link Temporarily Unavailable
# Building
@ -43,4 +46,4 @@ Suggestions are welcome! We have a separate issue tracker for suggestions, that
* [BasicPlots](https://www.spigotmc.org/resources/basicplots.6901/)
* [HoloPlots](https://www.spigotmc.org/resources/holoplots.4880/)
[WebChat/IRC]: http://webchat.esper.net/?nick=&channels=IntellectualCrafters&fg_color=000&fg_sec_color=000&bg_color=FFF
[WebChat/IRC]: https://webchat.esper.net/?nick=&channels=IntellectualCrafters