From bf2352130939de82583e9b9977c3165e6f1d1308 Mon Sep 17 00:00:00 2001 From: BrowkS Date: Wed, 6 May 2020 22:32:40 +0300 Subject: [PATCH] Sending join message to faction members after setting player's faction and role. --- src/main/java/com/massivecraft/factions/cmd/CmdJoin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/massivecraft/factions/cmd/CmdJoin.java b/src/main/java/com/massivecraft/factions/cmd/CmdJoin.java index c69dc745..5bad4de5 100644 --- a/src/main/java/com/massivecraft/factions/cmd/CmdJoin.java +++ b/src/main/java/com/massivecraft/factions/cmd/CmdJoin.java @@ -115,8 +115,6 @@ public class CmdJoin extends FCommand { fplayer.msg(TL.COMMAND_JOIN_MOVED, context.fPlayer.describeTo(fplayer, true), faction.getTag(fplayer)); } - faction.msg(TL.COMMAND_JOIN_JOINED, fplayer.describeTo(faction, true)); - fplayer.resetFactionData(); if (faction.altInvited(fplayer)) { @@ -144,6 +142,8 @@ public class CmdJoin extends FCommand { System.out.print(e.getMessage()); } + faction.msg(TL.COMMAND_JOIN_JOINED, fplayer.describeTo(faction, true)); + if (Conf.logFactionJoin) { if (samePlayer) { FactionsPlugin.getInstance().log(TL.COMMAND_JOIN_JOINEDLOG.toString(), fplayer.getName(), faction.getTag());