mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 05:06:44 +01:00
Minor cleanup
This commit is contained in:
parent
b6d4872ca4
commit
302051a6ca
@ -18,7 +18,7 @@ import java.util.UUID;
|
|||||||
|
|
||||||
@CommandDeclaration(
|
@CommandDeclaration(
|
||||||
command = "add",
|
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>",
|
usage = "/plot add <player>",
|
||||||
category = CommandCategory.SETTINGS,
|
category = CommandCategory.SETTINGS,
|
||||||
permission = "plots.add",
|
permission = "plots.add",
|
||||||
|
@ -15,7 +15,7 @@ import com.plotsquared.general.commands.Command;
|
|||||||
import com.plotsquared.general.commands.CommandDeclaration;
|
import com.plotsquared.general.commands.CommandDeclaration;
|
||||||
|
|
||||||
@CommandDeclaration(command = "clear",
|
@CommandDeclaration(command = "clear",
|
||||||
description = "Clear a plot",
|
description = "Clear the plot you stand on",
|
||||||
permission = "plots.clear",
|
permission = "plots.clear",
|
||||||
category = CommandCategory.APPEARANCE,
|
category = CommandCategory.APPEARANCE,
|
||||||
usage = "/plot clear",
|
usage = "/plot clear",
|
||||||
|
@ -17,14 +17,17 @@ import com.plotsquared.general.commands.CommandDeclaration;
|
|||||||
@CommandDeclaration(
|
@CommandDeclaration(
|
||||||
command = "delete",
|
command = "delete",
|
||||||
permission = "plots.delete",
|
permission = "plots.delete",
|
||||||
description = "Delete a plot",
|
description = "Delete the plot you stand on",
|
||||||
usage = "/plot delete",
|
usage = "/plot delete",
|
||||||
aliases = {"dispose", "del", "reset"},
|
aliases = {"dispose", "del"},
|
||||||
category = CommandCategory.CLAIMING,
|
category = CommandCategory.CLAIMING,
|
||||||
requiredType = RequiredType.NONE,
|
requiredType = RequiredType.NONE,
|
||||||
confirmation = true)
|
confirmation = true)
|
||||||
public class Delete extends SubCommand {
|
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
|
@Override
|
||||||
public boolean onCommand(final PlotPlayer player, String[] args) {
|
public boolean onCommand(final PlotPlayer player, String[] args) {
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ import java.util.UUID;
|
|||||||
aliases = {"k"},
|
aliases = {"k"},
|
||||||
description = "Kick a player from your plot",
|
description = "Kick a player from your plot",
|
||||||
permission = "plots.kick",
|
permission = "plots.kick",
|
||||||
usage = "<player>",
|
usage = "/plot kick <player>",
|
||||||
category = CommandCategory.TELEPORT,
|
category = CommandCategory.TELEPORT,
|
||||||
requiredType = RequiredType.NONE)
|
requiredType = RequiredType.NONE)
|
||||||
public class Kick extends SubCommand {
|
public class Kick extends SubCommand {
|
||||||
|
@ -25,7 +25,7 @@ import java.util.List;
|
|||||||
requiredType = RequiredType.NONE,
|
requiredType = RequiredType.NONE,
|
||||||
description = "Load your plot",
|
description = "Load your plot",
|
||||||
permission = "plots.load",
|
permission = "plots.load",
|
||||||
usage = "/plot restore")
|
usage = "/plot load")
|
||||||
public class Load extends SubCommand {
|
public class Load extends SubCommand {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -14,7 +14,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
|
|||||||
@CommandDeclaration(
|
@CommandDeclaration(
|
||||||
command = "music",
|
command = "music",
|
||||||
permission = "plots.music",
|
permission = "plots.music",
|
||||||
description = "Player music in a plot",
|
description = "Play music in your plot",
|
||||||
usage = "/plot music",
|
usage = "/plot music",
|
||||||
category = CommandCategory.APPEARANCE,
|
category = CommandCategory.APPEARANCE,
|
||||||
requiredType = RequiredType.PLAYER)
|
requiredType = RequiredType.PLAYER)
|
||||||
|
@ -11,6 +11,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
|
|||||||
@CommandDeclaration(command = "plugin",
|
@CommandDeclaration(command = "plugin",
|
||||||
permission = "plots.use",
|
permission = "plots.use",
|
||||||
description = "Show plugin information",
|
description = "Show plugin information",
|
||||||
|
usage = "/plot plugin",
|
||||||
aliases = "version",
|
aliases = "version",
|
||||||
category = CommandCategory.INFO)
|
category = CommandCategory.INFO)
|
||||||
public class PluginCmd extends SubCommand {
|
public class PluginCmd extends SubCommand {
|
||||||
|
@ -13,7 +13,10 @@ import com.plotsquared.general.commands.Command;
|
|||||||
import com.plotsquared.general.commands.CommandDeclaration;
|
import com.plotsquared.general.commands.CommandDeclaration;
|
||||||
import java.util.HashSet;
|
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 class Relight extends Command {
|
||||||
public Relight() {
|
public Relight() {
|
||||||
super(MainCommand.getInstance(), true);
|
super(MainCommand.getInstance(), true);
|
||||||
|
@ -14,8 +14,9 @@ import java.io.IOException;
|
|||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
@CommandDeclaration(command = "reload",
|
@CommandDeclaration(command = "reload",
|
||||||
|
aliases = "rl",
|
||||||
permission = "plots.admin.command.reload",
|
permission = "plots.admin.command.reload",
|
||||||
description = "Reload configurations",
|
description = "Reload translations and world settings",
|
||||||
usage = "/plot reload",
|
usage = "/plot reload",
|
||||||
category = CommandCategory.ADMINISTRATION)
|
category = CommandCategory.ADMINISTRATION)
|
||||||
public class Reload extends SubCommand {
|
public class Reload extends SubCommand {
|
||||||
|
@ -25,7 +25,7 @@ import java.util.UUID;
|
|||||||
command = "schematic",
|
command = "schematic",
|
||||||
permission = "plots.schematic",
|
permission = "plots.schematic",
|
||||||
description = "Schematic command",
|
description = "Schematic command",
|
||||||
aliases = {"sch"},
|
aliases = {"sch", "schem"},
|
||||||
category = CommandCategory.SCHEMATIC,
|
category = CommandCategory.SCHEMATIC,
|
||||||
usage = "/plot schematic <arg...>")
|
usage = "/plot schematic <arg...>")
|
||||||
public class SchematicCmd extends SubCommand {
|
public class SchematicCmd extends SubCommand {
|
||||||
|
@ -11,7 +11,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
|
|||||||
@CommandDeclaration(
|
@CommandDeclaration(
|
||||||
command = "sethome",
|
command = "sethome",
|
||||||
permission = "plots.set.home",
|
permission = "plots.set.home",
|
||||||
description = "Set the plot home",
|
description = "Set the plot home to your current position",
|
||||||
usage = "/plot sethome [none]",
|
usage = "/plot sethome [none]",
|
||||||
aliases = {"sh", "seth"},
|
aliases = {"sh", "seth"},
|
||||||
category = CommandCategory.SETTINGS,
|
category = CommandCategory.SETTINGS,
|
||||||
@ -22,6 +22,7 @@ public class SetHome extends SetCommand {
|
|||||||
public boolean set(PlotPlayer player, Plot plot, String value) {
|
public boolean set(PlotPlayer player, Plot plot, String value) {
|
||||||
switch (value.toLowerCase()) {
|
switch (value.toLowerCase()) {
|
||||||
case "unset":
|
case "unset":
|
||||||
|
case "reset":
|
||||||
case "remove":
|
case "remove":
|
||||||
case "none": {
|
case "none": {
|
||||||
Plot base = plot.getBasePlot(false);
|
Plot base = plot.getBasePlot(false);
|
||||||
|
@ -21,7 +21,7 @@ import java.util.UUID;
|
|||||||
aliases = {"t"},
|
aliases = {"t"},
|
||||||
requiredType = RequiredType.NONE,
|
requiredType = RequiredType.NONE,
|
||||||
usage = "/plot trust <player>",
|
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)
|
category = CommandCategory.SETTINGS)
|
||||||
public class Trust extends Command {
|
public class Trust extends Command {
|
||||||
|
|
||||||
|
@ -38,6 +38,6 @@ public class GameModeFlag extends Flag<PlotGameMode> {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getValueDescription() {
|
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'";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -26,6 +26,6 @@ public class IntegerListFlag extends ListFlag<List<Integer>> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override public String getValueDescription() {
|
@Override public String getValueDescription() {
|
||||||
return "Flag value must be a integer list";
|
return "Flag value must be an integer list";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -31,6 +31,6 @@ public class PlotWeatherFlag extends Flag<PlotWeather> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override public String getValueDescription() {
|
@Override public String getValueDescription() {
|
||||||
return "";
|
return "Flag must be a weather: 'rain' or 'sun'";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
17
README.md
17
README.md
@ -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.
|
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.
|
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
|
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
|
## 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/)
|
* [Spigot Page](https://www.spigotmc.org/resources/plotsquared.1177/)
|
||||||
* [WebChat/IRC]: #IntellectualCrafters on irc.esper.net
|
* [WebChat/IRC]: #IntellectualCrafters on irc.esper.net
|
||||||
|
* [Discord](https://discord.gg/ngZCzbU)
|
||||||
* [Wiki](https://github.com/intellectualcrafters/plotsquared/wiki)
|
* [Wiki](https://github.com/intellectualcrafters/plotsquared/wiki)
|
||||||
* [Website](http://plotsquared.com)
|
|
||||||
|
|
||||||
### Developer Resources
|
### Developer Resources
|
||||||
* [JavaDocs] Link Temporarily Unavailable
|
* [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
|
* [Maven Repo] Link Temporarily Unavailable
|
||||||
|
|
||||||
# Building
|
# 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/)
|
* [BasicPlots](https://www.spigotmc.org/resources/basicplots.6901/)
|
||||||
* [HoloPlots](https://www.spigotmc.org/resources/holoplots.4880/)
|
* [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
|
Loading…
Reference in New Issue
Block a user