Quickfixed everything easy.

This commit is contained in:
Olof Larsson
2013-04-22 13:03:21 +02:00
parent 9fc75b1fcf
commit 61e8730495
52 changed files with 134 additions and 132 deletions

View File

@@ -1,6 +1,7 @@
package com.massivecraft.factions.chat.modifier;
import com.massivecraft.factions.chat.ChatModifierAbstract;
import com.massivecraft.factions.entity.FPlayer;
public class ChatModifierLc extends ChatModifierAbstract
{
@@ -17,7 +18,7 @@ public class ChatModifierLc extends ChatModifierAbstract
// -------------------------------------------- //
@Override
public String getModified(String subject, String senderId, String sendeeId, String recipientId)
public String getModified(String subject, FPlayer fsender, FPlayer frecipient)
{
return subject.toLowerCase();
}

View File

@@ -1,6 +1,7 @@
package com.massivecraft.factions.chat.modifier;
import com.massivecraft.factions.chat.ChatModifierAbstract;
import com.massivecraft.factions.entity.FPlayer;
public class ChatModifierLp extends ChatModifierAbstract
@@ -18,7 +19,7 @@ public class ChatModifierLp extends ChatModifierAbstract
// -------------------------------------------- //
@Override
public String getModified(String subject, String senderId, String sendeeId, String recipientId)
public String getModified(String subject, FPlayer fsender, FPlayer frecipient)
{
if (subject.equals("")) return subject;
return " "+subject;

View File

@@ -1,6 +1,7 @@
package com.massivecraft.factions.chat.modifier;
import com.massivecraft.factions.chat.ChatModifierAbstract;
import com.massivecraft.factions.entity.FPlayer;
import com.massivecraft.mcore.util.Txt;
public class ChatModifierParse extends ChatModifierAbstract
@@ -18,7 +19,7 @@ public class ChatModifierParse extends ChatModifierAbstract
// -------------------------------------------- //
@Override
public String getModified(String subject, String senderId, String sendeeId, String recipientId)
public String getModified(String subject, FPlayer fsender, FPlayer frecipient)
{
return Txt.parse(subject);
}

View File

@@ -1,6 +1,7 @@
package com.massivecraft.factions.chat.modifier;
import com.massivecraft.factions.chat.ChatModifierAbstract;
import com.massivecraft.factions.entity.FPlayer;
public class ChatModifierRp extends ChatModifierAbstract
{
@@ -17,7 +18,7 @@ public class ChatModifierRp extends ChatModifierAbstract
// -------------------------------------------- //
@Override
public String getModified(String subject, String senderId, String sendeeId, String recipientId)
public String getModified(String subject, FPlayer fsender, FPlayer frecipient)
{
if (subject.equals("")) return subject;
return subject+" ";

View File

@@ -1,6 +1,7 @@
package com.massivecraft.factions.chat.modifier;
import com.massivecraft.factions.chat.ChatModifierAbstract;
import com.massivecraft.factions.entity.FPlayer;
public class ChatModifierUc extends ChatModifierAbstract
{
@@ -17,7 +18,7 @@ public class ChatModifierUc extends ChatModifierAbstract
// -------------------------------------------- //
@Override
public String getModified(String subject, String senderId, String sendeeId, String recipientId)
public String getModified(String subject, FPlayer fsender, FPlayer frecipient)
{
return subject.toUpperCase();
}

View File

@@ -1,6 +1,7 @@
package com.massivecraft.factions.chat.modifier;
import com.massivecraft.factions.chat.ChatModifierAbstract;
import com.massivecraft.factions.entity.FPlayer;
import com.massivecraft.mcore.util.Txt;
public class ChatModifierUcf extends ChatModifierAbstract
@@ -18,7 +19,7 @@ public class ChatModifierUcf extends ChatModifierAbstract
// -------------------------------------------- //
@Override
public String getModified(String subject, String senderId, String sendeeId, String recipientId)
public String getModified(String subject, FPlayer fsender, FPlayer frecipient)
{
return Txt.upperCaseFirst(subject);
}