mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-06 20:42:55 +00:00
Reformat.
This commit is contained in:
parent
59be72aefe
commit
73e92b8341
167 changed files with 3705 additions and 5553 deletions
|
@ -25,23 +25,19 @@ import org.apache.commons.lang.StringUtils;
|
|||
|
||||
public class Flag {
|
||||
private final AbstractFlag key;
|
||||
private final String value;
|
||||
private final String value;
|
||||
|
||||
/**
|
||||
* Flag object used to store basic information for a Plot. Flags are a
|
||||
* key/value pair. For a flag to be usable by a player, you need to register
|
||||
* it with PlotSquared.
|
||||
* Flag object used to store basic information for a Plot. Flags are a key/value pair. For a flag to be usable by a
|
||||
* player, you need to register it with PlotSquared.
|
||||
*
|
||||
* @param key
|
||||
* AbstractFlag
|
||||
* @param value
|
||||
* Value must be alphanumerical (can have spaces) and be <= 48
|
||||
* characters
|
||||
* @throws IllegalArgumentException
|
||||
* if you provide inadequate inputs
|
||||
* @param key AbstractFlag
|
||||
* @param value Value must be alphanumerical (can have spaces) and be <= 48 characters
|
||||
*
|
||||
* @throws IllegalArgumentException if you provide inadequate inputs
|
||||
*/
|
||||
public Flag(final AbstractFlag key, final String value) {
|
||||
final char[] allowedCharacters = new char[] { '[', ']', '(', ')', ',', '_', '-', '.', ',', '?', '!', '&', ':', '\u00A7' };
|
||||
final char[] allowedCharacters = new char[]{'[', ']', '(', ')', ',', '_', '-', '.', ',', '?', '!', '&', ':', '\u00A7'};
|
||||
String tempValue = value;
|
||||
for (final char c : allowedCharacters) {
|
||||
tempValue = tempValue.replace(c, 'c');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue