Move setMessage hook to end of method

This commit is contained in:
Adam
2017-12-04 19:00:37 -05:00
parent e4bac7f685
commit e1623f239a

View File

@@ -256,8 +256,6 @@ public class Hooks
public static void setMessage(MessageNode messageNode, int type, String name, String sender, String value)
{
// Hook is fired prior to actually setting these on the MessageNode, so send them
// in the event too.
SetMessage setMessage = new SetMessage();
setMessage.setMessageNode(messageNode);
setMessage.setType(ChatMessageType.of(type));