Fixed things, added project file
This commit is contained in:
parent
381955ef1a
commit
1d9b49f4bd
3 changed files with 9 additions and 19 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -3,7 +3,6 @@
|
|||
#################
|
||||
|
||||
*.pydevproject
|
||||
.project
|
||||
.metadata/
|
||||
bin/
|
||||
tmp/
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>TheButtonAutoFlair</name>
|
||||
<name>TheButtonMinecraftChat</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
|
@ -10,8 +10,14 @@
|
|||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.m2e.core.maven2Builder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
|
@ -26,22 +26,7 @@ public final class ChatFormatter {
|
|||
this.priority = Priority.High;
|
||||
}
|
||||
|
||||
public ChatFormatter(Pattern regex, Format format, String openlink) { // TODO:
|
||||
// Openlink
|
||||
// won't
|
||||
// be
|
||||
// replaced,
|
||||
// as
|
||||
// the
|
||||
// original
|
||||
// string
|
||||
// should
|
||||
// be;
|
||||
// replace
|
||||
// $1
|
||||
// with
|
||||
// match
|
||||
// TODO: Get indexes and work with those
|
||||
public ChatFormatter(Pattern regex, Format format, String openlink) {
|
||||
this.regex = regex;
|
||||
this.format = format;
|
||||
this.openlink = openlink;
|
||||
|
@ -72,7 +57,7 @@ public final class ChatFormatter {
|
|||
|
||||
public static String Combine(List<ChatFormatter> formatters, String str) {
|
||||
/*
|
||||
* This method assumes that there are always a global formatter
|
||||
* This method assumes that there is always a global formatter
|
||||
*/
|
||||
ArrayList<FormattedSection> sections = new ArrayList<ChatFormatter.FormattedSection>();
|
||||
for (ChatFormatter formatter : formatters) {
|
||||
|
|
Loading…
Reference in a new issue