Improving the faction tag matching
This commit is contained in:
1 parent
75cd9b5e18
commit
7ebed6db9c
3 files changed
+22
-7
No files matched your search
@@ -223,9 +223,20 @@ public abstract class FCommand extends MCommand<P>
|
||||
|
||||
if (name != null)
|
||||
{
|
||||
// First we match faction tags
|
||||
Faction faction = Factions.i.getBestTagMatch(name);
|
||||
Faction faction = null;
|
||||
|
||||
// First we try an exact match
|
||||
if (faction == null)
|
||||
{
|
||||
faction = Factions.i.getByTag(name);
|
||||
}
|
||||
|
||||
// Next we match faction tags
|
||||
if (faction == null)
|
||||
{
|
||||
faction = Factions.i.getBestTagMatch(name);
|
||||
}
|
||||
|
||||
// Next we match player names
|
||||
if (faction == null)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user