Removed redundant code
This commit is contained in:
@@ -17,13 +17,11 @@ import com.redstoner.misc.Utils;
|
||||
import com.redstoner.modules.Module;
|
||||
import com.redstoner.modules.socialspy.Socialspy;
|
||||
|
||||
import net.nemez.chatapi.ChatAPI;
|
||||
|
||||
@Commands(CommandHolderType.File)
|
||||
@Version(major = 4, minor = 0, revision = 0, compatible = 4)
|
||||
@Version(major = 4, minor = 0, revision = 1, compatible = 4)
|
||||
public class Message implements Module
|
||||
{
|
||||
HashMap<CommandSender, CommandSender> replyTargets = new HashMap<CommandSender, CommandSender>();
|
||||
HashMap<CommandSender, CommandSender> replyTargets = new HashMap<>();
|
||||
|
||||
@Command(hook = "message", async = AsyncType.ALWAYS)
|
||||
public boolean message(CommandSender sender, String target, String message)
|
||||
@@ -40,7 +38,6 @@ public class Message implements Module
|
||||
}
|
||||
else
|
||||
{
|
||||
message = ChatAPI.colorify(sender, message);
|
||||
if (ModuleLoader.getModule("Socialspy") != null)
|
||||
Socialspy.spyBroadcast(sender, p, message, "/m", new BroadcastFilter()
|
||||
{
|
||||
@@ -76,7 +73,6 @@ public class Message implements Module
|
||||
}
|
||||
else
|
||||
{
|
||||
message = ChatAPI.colorify(sender, message);
|
||||
if (ModuleLoader.getModule("Socialspy") != null)
|
||||
Socialspy.spyBroadcast(sender, target, message, "/r", new BroadcastFilter()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user