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
|
||||
|
||||
* /addpaidsign <id (the text to look for)> <line> <cost> \[ignore case] \[ignore color]
|
||||
* /removepaidsign <line|id (the text to look for)>
|
||||
* /addpaidsign <name> <cost> \[permission] \[ignore case] \[ignore color]
|
||||
* /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
|
@ -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 ]
|
||||
authors: [ EpicKnarvik97 ]
|
||||
description: Add costs for creating plugin signs
|
||||
website: https://git.knarcraft.net
|
||||
website: https://git.knarcraft.net/EpicKnarvik97/PaidSigns
|
||||
commands:
|
||||
addpaidsign:
|
||||
description: Used to add a new paid sign
|
||||
usage: /<command> <name> <cost> [permission] [ignore case] [ignore color]
|
||||
permission: paidsigns.add
|
||||
permission: paidsigns.manage
|
||||
addpaidsigncondition:
|
||||
description: Used to add a new match condition for a paid sign
|
||||
usage: /<command> <name (of a paid sign)> [executeRegEx] [ignoreCase] [ignoreColor]
|
||||
permission: paidsigns.add
|
||||
usage: /<command> <name (of a paid sign)> <line number> <string to match> [executeRegEx] [ignoreCase] [ignoreColor]
|
||||
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:
|
||||
description: Used to remove a paid sign
|
||||
usage: /<command> <line|id (the text to look for)>
|
||||
permission: paidsigns.remove
|
||||
usage: /<command> <name (of a paid sign)>
|
||||
permission: paidsigns.manage
|
||||
reload:
|
||||
description: Reloads paid signs from disk
|
||||
usage: /<command>
|
||||
@ -32,7 +44,7 @@ permissions:
|
||||
paidsigns.create: true
|
||||
paidsigns.paymentexempt: true
|
||||
paidsigns.reload: true
|
||||
paidsigns.add:
|
||||
paidsigns.manage:
|
||||
description: Grants the permission to add/remove a paid sign
|
||||
default: false
|
||||
paidsigns.reload:
|
||||
|
Loading…
Reference in New Issue
Block a user