mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-26 02:28:03 +01:00
Forgot to use the ShareHandler enum here
This commit is contained in:
parent
7d83dd8283
commit
77e048471e
@ -372,13 +372,13 @@ public class PartyCommand implements CommandExecutor {
|
|||||||
|
|
||||||
if (party.getLeader().equals(playerName)) {
|
if (party.getLeader().equals(playerName)) {
|
||||||
if (args[1].equalsIgnoreCase("none") || args[1].equalsIgnoreCase("false")) {
|
if (args[1].equalsIgnoreCase("none") || args[1].equalsIgnoreCase("false")) {
|
||||||
party.setXpShareMode(ShareHandler.XpShareMode.getFromString("NONE"));
|
party.setXpShareMode(ShareHandler.XpShareMode.NONE);
|
||||||
|
|
||||||
for (Player onlineMembers : party.getOnlineMembers()) {
|
for (Player onlineMembers : party.getOnlineMembers()) {
|
||||||
onlineMembers.sendMessage(LocaleLoader.getString("Commands.Party.SetSharing", new Object[] {LocaleLoader.getString("Party.ShareType.Exp"), LocaleLoader.getString("Party.ShareMode.NoShare")}));
|
onlineMembers.sendMessage(LocaleLoader.getString("Commands.Party.SetSharing", new Object[] {LocaleLoader.getString("Party.ShareType.Exp"), LocaleLoader.getString("Party.ShareMode.NoShare")}));
|
||||||
}
|
}
|
||||||
} else if (args[1].equalsIgnoreCase("equal") || args[1].equalsIgnoreCase("even")) {
|
} else if (args[1].equalsIgnoreCase("equal") || args[1].equalsIgnoreCase("even")) {
|
||||||
party.setXpShareMode(ShareHandler.XpShareMode.getFromString("EQUAL"));
|
party.setXpShareMode(ShareHandler.XpShareMode.EQUAL);
|
||||||
|
|
||||||
for (Player onlineMembers : party.getOnlineMembers()) {
|
for (Player onlineMembers : party.getOnlineMembers()) {
|
||||||
onlineMembers.sendMessage(LocaleLoader.getString("Commands.Party.SetSharing", new Object[] {LocaleLoader.getString("Party.ShareType.Exp"), LocaleLoader.getString("Party.ShareMode.Equal")}));
|
onlineMembers.sendMessage(LocaleLoader.getString("Commands.Party.SetSharing", new Object[] {LocaleLoader.getString("Party.ShareType.Exp"), LocaleLoader.getString("Party.ShareMode.Equal")}));
|
||||||
|
Loading…
Reference in New Issue
Block a user