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
|
*.pydevproject
|
||||||
.project
|
|
||||||
.metadata/
|
.metadata/
|
||||||
bin/
|
bin/
|
||||||
tmp/
|
tmp/
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<projectDescription>
|
<projectDescription>
|
||||||
<name>TheButtonAutoFlair</name>
|
<name>TheButtonMinecraftChat</name>
|
||||||
<comment></comment>
|
<comment></comment>
|
||||||
<projects>
|
<projects>
|
||||||
</projects>
|
</projects>
|
||||||
|
@ -10,8 +10,14 @@
|
||||||
<arguments>
|
<arguments>
|
||||||
</arguments>
|
</arguments>
|
||||||
</buildCommand>
|
</buildCommand>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.m2e.core.maven2Builder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
</buildSpec>
|
</buildSpec>
|
||||||
<natures>
|
<natures>
|
||||||
|
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
||||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||||
</natures>
|
</natures>
|
||||||
</projectDescription>
|
</projectDescription>
|
|
@ -26,22 +26,7 @@ public final class ChatFormatter {
|
||||||
this.priority = Priority.High;
|
this.priority = Priority.High;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ChatFormatter(Pattern regex, Format format, String openlink) { // TODO:
|
public ChatFormatter(Pattern regex, Format format, String openlink) {
|
||||||
// Openlink
|
|
||||||
// won't
|
|
||||||
// be
|
|
||||||
// replaced,
|
|
||||||
// as
|
|
||||||
// the
|
|
||||||
// original
|
|
||||||
// string
|
|
||||||
// should
|
|
||||||
// be;
|
|
||||||
// replace
|
|
||||||
// $1
|
|
||||||
// with
|
|
||||||
// match
|
|
||||||
// TODO: Get indexes and work with those
|
|
||||||
this.regex = regex;
|
this.regex = regex;
|
||||||
this.format = format;
|
this.format = format;
|
||||||
this.openlink = openlink;
|
this.openlink = openlink;
|
||||||
|
@ -72,7 +57,7 @@ public final class ChatFormatter {
|
||||||
|
|
||||||
public static String Combine(List<ChatFormatter> formatters, String str) {
|
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>();
|
ArrayList<FormattedSection> sections = new ArrayList<ChatFormatter.FormattedSection>();
|
||||||
for (ChatFormatter formatter : formatters) {
|
for (ChatFormatter formatter : formatters) {
|
||||||
|
|
Loading…
Reference in a new issue