Improve command documentation
This commit is contained in:
parent
49a29a7420
commit
cefba8b2ae
|
@ -3,7 +3,7 @@
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>FPChatX</groupId>
|
<groupId>FPChatX</groupId>
|
||||||
<artifactId>FPChatX</artifactId>
|
<artifactId>FPChatX</artifactId>
|
||||||
<version>1.0.0-BETA</version>
|
<version>1.0.1-BETA</version>
|
||||||
<build>
|
<build>
|
||||||
<sourceDirectory>src/main/java</sourceDirectory>
|
<sourceDirectory>src/main/java</sourceDirectory>
|
||||||
<resources>
|
<resources>
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -4,7 +4,7 @@
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>FPChatX</groupId>
|
<groupId>FPChatX</groupId>
|
||||||
<artifactId>FPChatX</artifactId>
|
<artifactId>FPChatX</artifactId>
|
||||||
<version>1.0.0-BETA</version>
|
<version>1.0.1-BETA</version>
|
||||||
<repositories>
|
<repositories>
|
||||||
<repository>
|
<repository>
|
||||||
<id>spigot-repo</id>
|
<id>spigot-repo</id>
|
||||||
|
|
|
@ -18,7 +18,7 @@ public class BadgeEquipCommand extends Commands {
|
||||||
super(plugin);
|
super(plugin);
|
||||||
name = "BadgeEquip";
|
name = "BadgeEquip";
|
||||||
description = "Equips badges for use in chat";
|
description = "Equips badges for use in chat";
|
||||||
syntax = ChatColor.GRAY + "/equip " + ChatColor.GOLD + "slot# badge#";
|
syntax = ChatColor.GRAY + "/equip " + ChatColor.GOLD + "<slot number> <badge number>";
|
||||||
minArgs = 2;
|
minArgs = 2;
|
||||||
maxArgs = 2;
|
maxArgs = 2;
|
||||||
labels.add("fpc badgeequip");
|
labels.add("fpc badgeequip");
|
||||||
|
|
|
@ -16,7 +16,7 @@ public class BadgeListCommand extends Commands {
|
||||||
super(plugin);
|
super(plugin);
|
||||||
name = "BadgeList";
|
name = "BadgeList";
|
||||||
description = "Pulls up a list of badges you own";
|
description = "Pulls up a list of badges you own";
|
||||||
syntax = ChatColor.GRAY + "/badgelist " + ChatColor.GOLD + "[page#]";
|
syntax = ChatColor.GRAY + "/badgelist " + ChatColor.GOLD + "[page number]";
|
||||||
minArgs = 0;
|
minArgs = 0;
|
||||||
maxArgs = 1;
|
maxArgs = 1;
|
||||||
labels.add("fpc badgelist");
|
labels.add("fpc badgelist");
|
||||||
|
|
|
@ -21,7 +21,7 @@ public class BlacklistCommand extends Commands {
|
||||||
super(plugin);
|
super(plugin);
|
||||||
name = "Blacklist";
|
name = "Blacklist";
|
||||||
description = "Toggles blacklisted status of a player in a specific channel";
|
description = "Toggles blacklisted status of a player in a specific channel";
|
||||||
syntax = ChatColor.GRAY + "/fpc blacklist " + ChatColor.GOLD + "channel player";
|
syntax = ChatColor.GRAY + "/fpc blacklist " + ChatColor.GOLD + "<channel> <player>";
|
||||||
minArgs = 1;
|
minArgs = 1;
|
||||||
maxArgs = 2;
|
maxArgs = 2;
|
||||||
labels.add("fpc blacklist");
|
labels.add("fpc blacklist");
|
||||||
|
|
|
@ -20,7 +20,7 @@ public class ChannelsCommand extends Commands {
|
||||||
super(plugin);
|
super(plugin);
|
||||||
name = "Channels";
|
name = "Channels";
|
||||||
description = "Lists all open channels";
|
description = "Lists all open channels";
|
||||||
syntax = ChatColor.GRAY + "/fpc channels " + ChatColor.GOLD + "[page#]";
|
syntax = ChatColor.GRAY + "/fpc channels " + ChatColor.GOLD + "[page number]";
|
||||||
minArgs = 0;
|
minArgs = 0;
|
||||||
maxArgs = 1;
|
maxArgs = 1;
|
||||||
labels.add("fpc channels");
|
labels.add("fpc channels");
|
||||||
|
|
|
@ -21,7 +21,7 @@ public class CreateCommand extends Commands {
|
||||||
super(plugin);
|
super(plugin);
|
||||||
name = "Create";
|
name = "Create";
|
||||||
description = "Makes a new channel";
|
description = "Makes a new channel";
|
||||||
syntax = ChatColor.GRAY + "/fpc create " + ChatColor.GOLD + "<temp> name <flags>";
|
syntax = ChatColor.GRAY + "/fpc create " + ChatColor.GOLD + "[temp] <name> [flags]";
|
||||||
minArgs = 1;
|
minArgs = 1;
|
||||||
maxArgs = 2 + validflags.length;
|
maxArgs = 2 + validflags.length;
|
||||||
labels.add("fpc create");
|
labels.add("fpc create");
|
||||||
|
|
|
@ -17,7 +17,7 @@ public class DeleteCommand extends Commands {
|
||||||
super(plugin);
|
super(plugin);
|
||||||
name = "Delete";
|
name = "Delete";
|
||||||
description = "Deletes a channel";
|
description = "Deletes a channel";
|
||||||
syntax = ChatColor.GRAY + "/fpc delete " + ChatColor.GOLD + "channel";
|
syntax = ChatColor.GRAY + "/fpc delete " + ChatColor.GOLD + "<channel>";
|
||||||
minArgs = 1;
|
minArgs = 1;
|
||||||
maxArgs = 1;
|
maxArgs = 1;
|
||||||
labels.add("fpc delete");
|
labels.add("fpc delete");
|
||||||
|
|
|
@ -18,7 +18,7 @@ public class GiveBadgeCommand extends Commands {
|
||||||
super(plugin);
|
super(plugin);
|
||||||
name = "GiveBadge";
|
name = "GiveBadge";
|
||||||
description = "Give player a badge";
|
description = "Give player a badge";
|
||||||
syntax = ChatColor.GRAY + "/givebadge " + ChatColor.GOLD + "player badge#";
|
syntax = ChatColor.GRAY + "/givebadge " + ChatColor.GOLD + "<player> <badge number>";
|
||||||
minArgs = 2;
|
minArgs = 2;
|
||||||
maxArgs = 2;
|
maxArgs = 2;
|
||||||
labels.add("fpc givebadge");
|
labels.add("fpc givebadge");
|
||||||
|
|
|
@ -18,7 +18,7 @@ public class HelpCommand extends Commands {
|
||||||
super(plugin);
|
super(plugin);
|
||||||
name = "Help";
|
name = "Help";
|
||||||
description = "Displays the help menu";
|
description = "Displays the help menu";
|
||||||
syntax = ChatColor.GRAY + "/fpc help " + ChatColor.GOLD + "page#";
|
syntax = ChatColor.GRAY + "/fpc help " + ChatColor.GOLD + "[page numer]";
|
||||||
minArgs = 0;
|
minArgs = 0;
|
||||||
maxArgs = 1;
|
maxArgs = 1;
|
||||||
labels.add("fpc help");
|
labels.add("fpc help");
|
||||||
|
|
|
@ -15,7 +15,7 @@ public class HushCommand extends Commands {
|
||||||
super(plugin);
|
super(plugin);
|
||||||
name = "Hush";
|
name = "Hush";
|
||||||
description = "Prevents a player from shouting";
|
description = "Prevents a player from shouting";
|
||||||
syntax = ChatColor.GRAY + "/hush " + ChatColor.GOLD + "player";
|
syntax = ChatColor.GRAY + "/hush " + ChatColor.GOLD + "<player>";
|
||||||
minArgs = 1;
|
minArgs = 1;
|
||||||
maxArgs = 1;
|
maxArgs = 1;
|
||||||
labels.add("fpc hush");
|
labels.add("fpc hush");
|
||||||
|
|
|
@ -19,7 +19,7 @@ public class IgnoreCommand extends Commands {
|
||||||
super(plugin);
|
super(plugin);
|
||||||
name = "Ignore";
|
name = "Ignore";
|
||||||
description = "Ignores all messages from a player";
|
description = "Ignores all messages from a player";
|
||||||
syntax = ChatColor.GRAY + "/ignore " + ChatColor.GOLD + "player";
|
syntax = ChatColor.GRAY + "/ignore " + ChatColor.GOLD + "<player>";
|
||||||
minArgs = 1;
|
minArgs = 1;
|
||||||
maxArgs = 1;
|
maxArgs = 1;
|
||||||
labels.add("fpc ignore");
|
labels.add("fpc ignore");
|
||||||
|
|
|
@ -20,7 +20,7 @@ public class IgnoreListCommand extends Commands {
|
||||||
super(plugin);
|
super(plugin);
|
||||||
name = "Ignore List";
|
name = "Ignore List";
|
||||||
description = "Lists all players you have ignored";
|
description = "Lists all players you have ignored";
|
||||||
syntax = ChatColor.GRAY + "/ignorelist " + ChatColor.GOLD + "[page#]";
|
syntax = ChatColor.GRAY + "/ignorelist " + ChatColor.GOLD + "[page number]";
|
||||||
minArgs = 0;
|
minArgs = 0;
|
||||||
maxArgs = 1;
|
maxArgs = 1;
|
||||||
labels.add("fpc ignorelist");
|
labels.add("fpc ignorelist");
|
||||||
|
|
|
@ -15,7 +15,7 @@ public class JoinCommand extends Commands {
|
||||||
super(plugin);
|
super(plugin);
|
||||||
name = "Join";
|
name = "Join";
|
||||||
description = "Enters a channel";
|
description = "Enters a channel";
|
||||||
syntax = ChatColor.GRAY + "/fpc join " + ChatColor.GOLD + "channel";
|
syntax = ChatColor.GRAY + "/fpc join " + ChatColor.GOLD + "<channel>";
|
||||||
minArgs = 1;
|
minArgs = 1;
|
||||||
maxArgs = 1;
|
maxArgs = 1;
|
||||||
labels.add("fpc join");
|
labels.add("fpc join");
|
||||||
|
|
|
@ -18,7 +18,7 @@ public class KickCommand extends Commands {
|
||||||
super(plugin);
|
super(plugin);
|
||||||
name = "Kick";
|
name = "Kick";
|
||||||
description = "Kicks a player from a channel";
|
description = "Kicks a player from a channel";
|
||||||
syntax = ChatColor.GRAY + "/fpc kick " + ChatColor.GOLD + "channel player";
|
syntax = ChatColor.GRAY + "/fpc kick " + ChatColor.GOLD + "<channel> <player>";
|
||||||
minArgs = 2;
|
minArgs = 2;
|
||||||
maxArgs = 2;
|
maxArgs = 2;
|
||||||
labels.add("fpc kick");
|
labels.add("fpc kick");
|
||||||
|
|
|
@ -15,7 +15,7 @@ public class LeaveCommand extends Commands {
|
||||||
super(plugin);
|
super(plugin);
|
||||||
name = "Leave";
|
name = "Leave";
|
||||||
description = "Leaves a channel";
|
description = "Leaves a channel";
|
||||||
syntax = ChatColor.GRAY + "/fpc leave " + ChatColor.GOLD + "channel";
|
syntax = ChatColor.GRAY + "/fpc leave " + ChatColor.GOLD + "<channel>";
|
||||||
minArgs = 1;
|
minArgs = 1;
|
||||||
maxArgs = 1;
|
maxArgs = 1;
|
||||||
labels.add("fpc leave");
|
labels.add("fpc leave");
|
||||||
|
|
|
@ -18,7 +18,7 @@ public class MessageCommand extends Commands {
|
||||||
super(plugin);
|
super(plugin);
|
||||||
name = "Message";
|
name = "Message";
|
||||||
description = "Sends a private message to another player";
|
description = "Sends a private message to another player";
|
||||||
syntax = ChatColor.GRAY + "/msg " + ChatColor.GOLD + "player message";
|
syntax = ChatColor.GRAY + "/msg " + ChatColor.GOLD + "<player> <message>";
|
||||||
minArgs = 2;
|
minArgs = 2;
|
||||||
maxArgs = 100000;
|
maxArgs = 100000;
|
||||||
labels.add("msg");
|
labels.add("msg");
|
||||||
|
|
|
@ -15,7 +15,7 @@ public class ReplyCommand extends Commands {
|
||||||
super(plugin);
|
super(plugin);
|
||||||
name = "Reply";
|
name = "Reply";
|
||||||
description = "Reply to a PM from another player";
|
description = "Reply to a PM from another player";
|
||||||
syntax = ChatColor.GRAY + "/r " + ChatColor.GOLD + "message";
|
syntax = ChatColor.GRAY + "/r " + ChatColor.GOLD + "<message>";
|
||||||
minArgs = 1;
|
minArgs = 1;
|
||||||
maxArgs = 10000;
|
maxArgs = 10000;
|
||||||
labels.add("reply");
|
labels.add("reply");
|
||||||
|
|
|
@ -23,7 +23,7 @@ public class RevokeBadgeCommand extends Commands {
|
||||||
super(plugin);
|
super(plugin);
|
||||||
name = "RevokeBadge";
|
name = "RevokeBadge";
|
||||||
description = "Revokes badge from player";
|
description = "Revokes badge from player";
|
||||||
syntax = ChatColor.GRAY + "/revokebadge " + ChatColor.GOLD + "player badge#";
|
syntax = ChatColor.GRAY + "/revokebadge " + ChatColor.GOLD + "<player> <badge number>";
|
||||||
minArgs = 2;
|
minArgs = 2;
|
||||||
maxArgs = 2;
|
maxArgs = 2;
|
||||||
labels.add("fpc revokebadge");
|
labels.add("fpc revokebadge");
|
||||||
|
|
|
@ -14,7 +14,7 @@ public class ShoutCommand extends Commands {
|
||||||
super(plugin);
|
super(plugin);
|
||||||
name = "Shout";
|
name = "Shout";
|
||||||
description = "Sends a chat message to every online player";
|
description = "Sends a chat message to every online player";
|
||||||
syntax = ChatColor.GRAY + "/shout " + ChatColor.GOLD + "msg";
|
syntax = ChatColor.GRAY + "/shout " + ChatColor.GOLD + "<message>";
|
||||||
minArgs = 0;
|
minArgs = 0;
|
||||||
maxArgs = 100000;
|
maxArgs = 100000;
|
||||||
labels.add("fpc shout");
|
labels.add("fpc shout");
|
||||||
|
|
|
@ -15,7 +15,7 @@ public class ShoutToggleCommand extends Commands {
|
||||||
super(plugin);
|
super(plugin);
|
||||||
name = "ShoutToggle";
|
name = "ShoutToggle";
|
||||||
description = "Temporarily enables or disables shout";
|
description = "Temporarily enables or disables shout";
|
||||||
syntax = ChatColor.GRAY + "/fpc shouttoggle " + ChatColor.GOLD + "channel";
|
syntax = ChatColor.GRAY + "/shouttoggle";
|
||||||
minArgs = 0;
|
minArgs = 0;
|
||||||
maxArgs = 0;
|
maxArgs = 0;
|
||||||
labels.add("fpc shouttoggle");
|
labels.add("fpc shouttoggle");
|
||||||
|
|
|
@ -17,7 +17,7 @@ public class SpyCommand extends Commands{
|
||||||
super(plugin);
|
super(plugin);
|
||||||
name = "Spy";
|
name = "Spy";
|
||||||
description = "Toggles Spy mode";
|
description = "Toggles Spy mode";
|
||||||
syntax = ChatColor.GRAY + "/spy " + ChatColor.GOLD + "on/off";
|
syntax = ChatColor.GRAY + "/spy " + ChatColor.GOLD + "{on|off}";
|
||||||
minArgs = 1;
|
minArgs = 1;
|
||||||
maxArgs = 1;
|
maxArgs = 1;
|
||||||
labels.add("spy");
|
labels.add("spy");
|
||||||
|
|
|
@ -22,7 +22,7 @@ public class TalkCommand extends Commands {
|
||||||
super(plugin);
|
super(plugin);
|
||||||
name = "Talk";
|
name = "Talk";
|
||||||
description = "Talk in a specific channel";
|
description = "Talk in a specific channel";
|
||||||
syntax = ChatColor.GRAY + "/talk " + ChatColor.GOLD + "channel [msg]";
|
syntax = ChatColor.GRAY + "/talk " + ChatColor.GOLD + "<channel> [message]";
|
||||||
minArgs = 1;
|
minArgs = 1;
|
||||||
maxArgs = 100000;
|
maxArgs = 100000;
|
||||||
labels.add("fpc talk");
|
labels.add("fpc talk");
|
||||||
|
|
|
@ -15,7 +15,7 @@ public class UnHushCommand extends Commands {
|
||||||
super(plugin);
|
super(plugin);
|
||||||
name = "UnHush";
|
name = "UnHush";
|
||||||
description = "Unhushes a player";
|
description = "Unhushes a player";
|
||||||
syntax = ChatColor.GRAY + "/unhush " + ChatColor.GOLD + "player";
|
syntax = ChatColor.GRAY + "/unhush " + ChatColor.GOLD + "<player>";
|
||||||
minArgs = 1;
|
minArgs = 1;
|
||||||
maxArgs = 1;
|
maxArgs = 1;
|
||||||
labels.add("fpc unhush");
|
labels.add("fpc unhush");
|
||||||
|
|
|
@ -18,7 +18,7 @@ public class UnignoreCommand extends Commands {
|
||||||
super(plugin);
|
super(plugin);
|
||||||
name = "Unignore";
|
name = "Unignore";
|
||||||
description = "Unignores all messages from a player";
|
description = "Unignores all messages from a player";
|
||||||
syntax = ChatColor.GRAY + "/unignore " + ChatColor.GOLD + "player";
|
syntax = ChatColor.GRAY + "/unignore " + ChatColor.GOLD + "<player>";
|
||||||
minArgs = 1;
|
minArgs = 1;
|
||||||
maxArgs = 1;
|
maxArgs = 1;
|
||||||
labels.add("fpc unignore");
|
labels.add("fpc unignore");
|
||||||
|
|
|
@ -19,7 +19,7 @@ public class WhoCommand extends Commands {
|
||||||
super(plugin);
|
super(plugin);
|
||||||
name = "Who";
|
name = "Who";
|
||||||
description = "Lists all players in your primary channel";
|
description = "Lists all players in your primary channel";
|
||||||
syntax = ChatColor.GRAY + "/fpc who " + ChatColor.GOLD + "[page#]";
|
syntax = ChatColor.GRAY + "/fpc who " + ChatColor.GOLD + "[page number]";
|
||||||
minArgs = 0;
|
minArgs = 0;
|
||||||
maxArgs = 1;
|
maxArgs = 1;
|
||||||
labels.add("fpc who");
|
labels.add("fpc who");
|
||||||
|
|
Loading…
Reference in New Issue