SignEdit is maded to simple edit your already placed sign lines or copy one text sign to other signs with copies.
A very util tool if using with ShopSigns and AdminShop plug-ins.
Commands and Permissions:
Command: /setline [1-4] [text of line with max of 16 characters]
Permission: signeditor.setline
Description: Allow you to edit each line of a sign, with colors using “&”. Rigth click the sign to paste the text.
Command: /copysign [optional number of copies]
Permission: signeditor.copysign
Description: Copy the text from one sign to other sign or to others signs with optional copies. Use rigth click on the sign to copy and paste the text to other signs.
Command: /signedit ?
Permission: none
Description: To get help about commands.
new CommandExecutor() {
@Override
public CommandResult execute(CommandSource src, CommandContext args) throws CommandException {
// do stuff
}
}
What’s much easier:
(src, args) -> {
// do stuff
}
Also, it’s recommended to throw a CommandException instead of sending a message and returning CommandResult.empty() when there’s an error in processing, whether it means the user did something wrong or that there was an internal exception.
By the way, why’s it a 16 character limit? Signs use JSON text, so the color codes don’t append to the character count like they used to, and there isn’t a character limit on signs anymore - it’s by character width now.
And about the functionality - looks good! I generally post regarding areas of improvement program-wise, and just automatically assume everything already works.
You may not like the appearance of the plugin id on console, but that’s not the important part. The important part is proper logging (and possibly proper hiding).
It’s just Java knowledge. I like using the new fancy Java features and APIs whenever possible.
Having the plugin id on the console is essential to server owners trying to debug which plugin a message is from. It might look ugly but it’s there for a reason.
Nah, since all erros show on console and all messages sent by players and CONSOLE are registred, theres no diference ‘-’.
But anyway, i tryed to use only the plugin name on plugin id but dton allowed me. Now i tested i i got how to, and i will use the logger again. Thanks for help.