Makes some changes in preparation for some commands that need to be added
Prepares the new command layout, changes the .add permission to .manage and adds 4 empty command classes
This commit is contained in:
parent
eaa4f929ca
commit
6f35da03e7
@ -13,6 +13,11 @@ As this plugin only listens to sign change events, there are some limitations:
|
|||||||
|
|
||||||
## Commands
|
## Commands
|
||||||
|
|
||||||
* /addpaidsign <id (the text to look for)> <line> <cost> \[ignore case] \[ignore color]
|
* /addpaidsign <name> <cost> \[permission] \[ignore case] \[ignore color]
|
||||||
* /removepaidsign <line|id (the text to look for)>
|
* /addpaidsigncondition <name (of a paid sign)> <line number> <string to match> \[executeRegEx] \[ignoreCase]
|
||||||
|
\[ignoreColor]
|
||||||
|
* /listpaidsigns
|
||||||
|
* /listpaidsignconditions <name (of a paid sign)>
|
||||||
|
* /removepaidsigncondition <name (of a paid sign)> <line number>
|
||||||
|
* /removepaidsign <name (of a paid sign)>
|
||||||
* /reload
|
* /reload
|
@ -0,0 +1,17 @@
|
|||||||
|
package net.knarcraft.paidsigns.command;
|
||||||
|
|
||||||
|
import org.bukkit.command.Command;
|
||||||
|
import org.bukkit.command.CommandExecutor;
|
||||||
|
import org.bukkit.command.CommandSender;
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
|
public class AddConditionCommand implements CommandExecutor {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label, @NotNull String[] args) {
|
||||||
|
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
package net.knarcraft.paidsigns.command;
|
||||||
|
|
||||||
|
import org.bukkit.command.Command;
|
||||||
|
import org.bukkit.command.CommandExecutor;
|
||||||
|
import org.bukkit.command.CommandSender;
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
|
public class ListCommand implements CommandExecutor {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label, @NotNull String[] args) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
package net.knarcraft.paidsigns.command;
|
||||||
|
|
||||||
|
import org.bukkit.command.Command;
|
||||||
|
import org.bukkit.command.CommandExecutor;
|
||||||
|
import org.bukkit.command.CommandSender;
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
|
public class ListConditionsCommand implements CommandExecutor {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label, @NotNull String[] args) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
package net.knarcraft.paidsigns.command;
|
||||||
|
|
||||||
|
import org.bukkit.command.Command;
|
||||||
|
import org.bukkit.command.CommandExecutor;
|
||||||
|
import org.bukkit.command.CommandSender;
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
|
public class RemoveConditionCommand implements CommandExecutor {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label, @NotNull String[] args) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -6,20 +6,32 @@ prefix: PaidSigns
|
|||||||
depend: [ Vault ]
|
depend: [ Vault ]
|
||||||
authors: [ EpicKnarvik97 ]
|
authors: [ EpicKnarvik97 ]
|
||||||
description: Add costs for creating plugin signs
|
description: Add costs for creating plugin signs
|
||||||
website: https://git.knarcraft.net
|
website: https://git.knarcraft.net/EpicKnarvik97/PaidSigns
|
||||||
commands:
|
commands:
|
||||||
addpaidsign:
|
addpaidsign:
|
||||||
description: Used to add a new paid sign
|
description: Used to add a new paid sign
|
||||||
usage: /<command> <name> <cost> [permission] [ignore case] [ignore color]
|
usage: /<command> <name> <cost> [permission] [ignore case] [ignore color]
|
||||||
permission: paidsigns.add
|
permission: paidsigns.manage
|
||||||
addpaidsigncondition:
|
addpaidsigncondition:
|
||||||
description: Used to add a new match condition for a paid sign
|
description: Used to add a new match condition for a paid sign
|
||||||
usage: /<command> <name (of a paid sign)> [executeRegEx] [ignoreCase] [ignoreColor]
|
usage: /<command> <name (of a paid sign)> <line number> <string to match> [executeRegEx] [ignoreCase] [ignoreColor]
|
||||||
permission: paidsigns.add
|
permission: paidsigns.manage
|
||||||
|
listpaidsigns:
|
||||||
|
description: Lists all previously added paid signs
|
||||||
|
usage: /<command>
|
||||||
|
permission: paidsigns.manage
|
||||||
|
listpaidsignconditions:
|
||||||
|
description: Lists all conditions added to the given paid sign
|
||||||
|
usage: /<command> <name (of a paid sign)>
|
||||||
|
permission: paidsigns.manage
|
||||||
|
removepaidsigncondition:
|
||||||
|
description: Used to remove a match condition from a paid sign
|
||||||
|
usage: /<command> <name (of a paid sign)> <line number>
|
||||||
|
permission: paidsigns.manage
|
||||||
removepaidsign:
|
removepaidsign:
|
||||||
description: Used to remove a paid sign
|
description: Used to remove a paid sign
|
||||||
usage: /<command> <line|id (the text to look for)>
|
usage: /<command> <name (of a paid sign)>
|
||||||
permission: paidsigns.remove
|
permission: paidsigns.manage
|
||||||
reload:
|
reload:
|
||||||
description: Reloads paid signs from disk
|
description: Reloads paid signs from disk
|
||||||
usage: /<command>
|
usage: /<command>
|
||||||
@ -32,7 +44,7 @@ permissions:
|
|||||||
paidsigns.create: true
|
paidsigns.create: true
|
||||||
paidsigns.paymentexempt: true
|
paidsigns.paymentexempt: true
|
||||||
paidsigns.reload: true
|
paidsigns.reload: true
|
||||||
paidsigns.add:
|
paidsigns.manage:
|
||||||
description: Grants the permission to add/remove a paid sign
|
description: Grants the permission to add/remove a paid sign
|
||||||
default: false
|
default: false
|
||||||
paidsigns.reload:
|
paidsigns.reload:
|
||||||
|
Loading…
Reference in New Issue
Block a user