Updates the plugin description and the add tab completer
This commit is contained in:
@ -30,7 +30,7 @@ public class AddCommand implements CommandExecutor {
|
||||
PaidSignManager manager = PaidSigns.getInstance().getSignManager();
|
||||
List<String> arguments = Tokenizer.tokenize(String.join(" ", args));
|
||||
|
||||
String id = arguments.get(0);
|
||||
String signName = arguments.get(0);
|
||||
double cost;
|
||||
try {
|
||||
cost = Double.parseDouble(arguments.get(2));
|
||||
@ -49,7 +49,7 @@ public class AddCommand implements CommandExecutor {
|
||||
}
|
||||
|
||||
try {
|
||||
PaidSign sign = new PaidSign(id, cost, permission, ignoreCase, ignoreColor);
|
||||
PaidSign sign = new PaidSign(signName, cost, permission, ignoreCase, ignoreColor);
|
||||
/* TODO: Rewrite the method for comparing if paid signs are duplicated
|
||||
for (PaidSign similarSign : manager.getPaidSigns(sign.getCleanId(), sign.getLineIndex())) {
|
||||
if (sign.matches(similarSign)) {
|
||||
|
Reference in New Issue
Block a user