Begin implementation of CheckStyle style checking

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2019-04-23 14:00:20 +10:00
parent 30a442aef7
commit c240b58f66
88 changed files with 246 additions and 192 deletions

View File

@@ -18,7 +18,7 @@ public class ExactMatchConversationCanceller implements ConversationCanceller {
public ExactMatchConversationCanceller(@NotNull String escapeSequence) {
this.escapeSequence = escapeSequence;
}
public void setConversation(@NotNull Conversation conversation) {}
public boolean cancelBasedOnInput(@NotNull ConversationContext context, @NotNull String input) {

View File

@@ -12,7 +12,7 @@ import java.util.List;
* response from the user.
*/
public abstract class FixedSetPrompt extends ValidatingPrompt {
protected List<String> fixedSet;
/**

View File

@@ -9,17 +9,17 @@ import org.jetbrains.annotations.NotNull;
* that displays the plugin name in front of conversation output.
*/
public class PluginNameConversationPrefix implements ConversationPrefix {
protected String separator;
protected ChatColor prefixColor;
protected Plugin plugin;
private String cachedPrefix;
public PluginNameConversationPrefix(@NotNull Plugin plugin) {
this(plugin, " > ", ChatColor.LIGHT_PURPLE);
}
public PluginNameConversationPrefix(@NotNull Plugin plugin, @NotNull String separator, @NotNull ChatColor prefixColor) {
this.separator = separator;
this.prefixColor = prefixColor;