From 473b9e8bbeb0b7d50f4444b57a2cc4592de43502 Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Sat, 26 Jan 2013 19:31:17 +0100 Subject: [PATCH] Add new party command /party rename --- .../com/gmail/nossr50/party/PartyManager.java | 15 +++++ .../nossr50/party/commands/PartyCommand.java | 56 ++++++++++++++++++- .../resources/locale/locale_cs_CZ.properties | 2 + .../resources/locale/locale_cy.properties | 2 + .../resources/locale/locale_da.properties | 2 + .../resources/locale/locale_de.properties | 2 + .../resources/locale/locale_en_US.properties | 2 + .../resources/locale/locale_es.properties | 2 + .../resources/locale/locale_fi.properties | 2 + .../resources/locale/locale_fr.properties | 2 + .../resources/locale/locale_it.properties | 2 + .../resources/locale/locale_ko.properties | 2 + .../resources/locale/locale_lv.properties | 2 + .../resources/locale/locale_nl.properties | 2 + .../resources/locale/locale_no.properties | 2 + .../resources/locale/locale_pl.properties | 2 + .../resources/locale/locale_pl_PL.properties | 2 + .../resources/locale/locale_pt_BR.properties | 2 + .../resources/locale/locale_ru.properties | 2 + .../resources/locale/locale_sv.properties | 2 + .../resources/locale/locale_tr_TR.properties | 2 + .../resources/locale/locale_zh_CN.properties | 2 + src/main/resources/plugin.yml | 1 + 23 files changed, 110 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/party/PartyManager.java b/src/main/java/com/gmail/nossr50/party/PartyManager.java index c59fea659..171131033 100644 --- a/src/main/java/com/gmail/nossr50/party/PartyManager.java +++ b/src/main/java/com/gmail/nossr50/party/PartyManager.java @@ -86,6 +86,21 @@ public class PartyManager { } } + /** + * Notify party members when the party leader changed the party name. + * + * @param newPartyName The new name of the party + * @param party The concerned party + */ + public void informPartyMembersNameChange(String newPartyName, Party party) { + String leader = party.getLeader(); + for (Player member : party.getOnlineMembers()) { + if (!member.getName().equals(leader)) { + member.sendMessage(LocaleLoader.getString("Party.InformedOnNameChange", new Object[] {leader, newPartyName})); + } + } + } + /** * Get a list of all players in this player's party. * diff --git a/src/main/java/com/gmail/nossr50/party/commands/PartyCommand.java b/src/main/java/com/gmail/nossr50/party/commands/PartyCommand.java index 12941c2d3..dad495953 100644 --- a/src/main/java/com/gmail/nossr50/party/commands/PartyCommand.java +++ b/src/main/java/com/gmail/nossr50/party/commands/PartyCommand.java @@ -47,6 +47,8 @@ public class PartyCommand implements CommandExecutor { return accept(sender, args); else if(args[0].equalsIgnoreCase("create")) return create(sender, args); + else if(args[0].equalsIgnoreCase("info")) + return party(sender); else if(args[0].equalsIgnoreCase("?") || args[0].equalsIgnoreCase("help")) return help(sender, args); if (playerProfile.inParty()) { @@ -70,6 +72,8 @@ public class PartyCommand implements CommandExecutor { return unlock(sender, args); else if(args[0].equalsIgnoreCase("password")) return password(sender, args); + else if(args[0].equalsIgnoreCase("rename")) + return rename(sender, args); else return usage(sender); } else { @@ -239,7 +243,7 @@ public class PartyCommand implements CommandExecutor { String password = null; if(args.length > 2) password = args[2]; - Party newParty = partyManagerInstance.getParty(args[1]); + Party newParty = partyManagerInstance.getParty(partyname); // Check to see if the party exists, and if it does cancel creating a new party if (newParty != null) { player.sendMessage(LocaleLoader.getString("Commands.Party.AlreadyExists", new Object[] {partyname})); @@ -247,7 +251,8 @@ public class PartyCommand implements CommandExecutor { } if (playerProfile.inParty()) { - McMMOPartyChangeEvent event = new McMMOPartyChangeEvent(player, playerProfile.getPlayerName(), partyname, EventReason.CHANGED_PARTIES); + String oldPartyName = party.getName(); + McMMOPartyChangeEvent event = new McMMOPartyChangeEvent(player, oldPartyName, partyname, EventReason.CHANGED_PARTIES); plugin.getServer().getPluginManager().callEvent(event); if (event.isCancelled()) { @@ -545,4 +550,51 @@ public class PartyCommand implements CommandExecutor { player.sendMessage(LocaleLoader.getString("Party.NotOwner")); return true; } + + /** + * Rename the current party + */ + private boolean rename(CommandSender sender, String[] args) { + if (CommandHelper.noCommandPermissions(sender, "mcmmo.commands.party.rename")) + return true; + + Player player = (Player) sender; + String playerName = player.getName(); + PlayerProfile playerProfile = Users.getProfile(player); + + PartyManager partyManagerInstance = PartyManager.getInstance(); + Party party = playerProfile.getParty(); + + if (party.getLeader().equals(playerName)) { + if(args.length < 2) { + player.sendMessage(LocaleLoader.getString("Commands.Usage.2", new Object[] {"party", "rename", "<" + LocaleLoader.getString("Commands.Usage.PartyName") + ">"})); + return true; + } else { + String newPartyName = args[1]; + if (!party.getName().equals(newPartyName)) {//This is to prevent party leaders from spamming other players with the rename message + Party newParty = partyManagerInstance.getParty(newPartyName); + // Check to see if the party exists, and if it does cancel renaming the party + if (newParty != null) { + player.sendMessage(LocaleLoader.getString("Commands.Party.AlreadyExists", new Object[] {newPartyName})); + return true; + } + + for (Player onlineMembers : party.getOnlineMembers()) { + McMMOPartyChangeEvent event = new McMMOPartyChangeEvent(onlineMembers, party.getName(), newPartyName, EventReason.CHANGED_PARTIES); + plugin.getServer().getPluginManager().callEvent(event); + + if (event.isCancelled()) { + return true; + } + } + partyManagerInstance.informPartyMembersNameChange(newPartyName, party); + party.setName(newPartyName); + } + player.sendMessage(LocaleLoader.getString("Commands.Party.Rename", new Object[] {newPartyName})); + } + } + else + player.sendMessage(LocaleLoader.getString("Party.NotOwner")); + return true; + } } diff --git a/src/main/resources/locale/locale_cs_CZ.properties b/src/main/resources/locale/locale_cs_CZ.properties index eabcd7345..fa792a10b 100644 --- a/src/main/resources/locale/locale_cs_CZ.properties +++ b/src/main/resources/locale/locale_cs_CZ.properties @@ -398,6 +398,7 @@ Commands.Party.Invite.1=[[YELLOW]]Napis [[GREEN]]/party accept[[YELLOW]] pro pot Commands.Party.Invite= [[RED]]- Poslat pozv\u00e1nku do party Commands.Party.Join=[[GRAY]]Pripojen do party: {0} Commands.Party.Create=[[GRAY]]Created Party: {0} +Commands.Party.Rename=[[GRAY]]Party name changed to: [[WHITE]]{0} Commands.Party.AlreadyExists=[[DARK_RED]]Party {0} already exists! Commands.Party.Kick=[[RED]]Byl jsi vyhozen z party {0}! Commands.Party.Leave=[[RED]]Opustil jsi party @@ -446,6 +447,7 @@ Party.Help.7=[[RED]]To transfer ownership of your party, use [[DARK_AQUA]]/party Party.Help.8=[[RED]]To disband your party, use [[DARK_AQUA]]/party disband Party.InformedOnJoin={0} [[GREEN]] se p\u0159ipojil k va\u0161\u00ed skupin\u011b Party.InformedOnQuit={0} [[GREEN]] opustil party +Party.InformedOnNameChange=[[GOLD]]{0} [[GREEN]]has set the party name to [[WHITE]]{1} Party.InvalidName=[[DARK_RED]]Toto nen\u00ed mo\u017en\u00e9 jm\u00e9no pro partu. Party.IsLocked=[[RED]]Tahla parta je ji\u017e uzamknuta! Party.IsntLocked=[[RED]]Tato parta je zamknuta! diff --git a/src/main/resources/locale/locale_cy.properties b/src/main/resources/locale/locale_cy.properties index 1ac01fe16..7447720b7 100644 --- a/src/main/resources/locale/locale_cy.properties +++ b/src/main/resources/locale/locale_cy.properties @@ -398,6 +398,7 @@ Commands.Party.Invite.1=[[YELLOW]] Math [[GREEN]]/party accept[[YELLOW]] i dderb Commands.Party.Invite= [[RED]]- Send party invite Commands.Party.Join=[[GRAY]]Joined Party: {0} Commands.Party.Create=[[GRAY]]Created Party: {0} +Commands.Party.Rename=[[GRAY]]Party name changed to: [[WHITE]]{0} Commands.Party.AlreadyExists=[[DARK_RED]]Party {0} already exists! Commands.Party.Kick=[[RED]] oeddech yn cicio o blaid {0}! Commands.Party.Leave=[[RED]] Yr ydych wedi gadael y blaid honno @@ -446,6 +447,7 @@ Party.Help.7=[[RED]]To transfer ownership of your party, use [[DARK_AQUA]]/party Party.Help.8=[[RED]]To disband your party, use [[DARK_AQUA]]/party disband Party.InformedOnJoin={0} [[GREEN]] has joined your party Party.InformedOnQuit={0} [[GREEN]] wedi gadael eich plaid +Party.InformedOnNameChange=[[GOLD]]{0} [[GREEN]]has set the party name to [[WHITE]]{1} Party.InvalidName=[[DARK_RED]]That is not a valid party name. Party.IsLocked=[[RED]]This party is already locked! Party.IsntLocked=[[RED]]This party is not locked! diff --git a/src/main/resources/locale/locale_da.properties b/src/main/resources/locale/locale_da.properties index 0efae566f..646c1755c 100644 --- a/src/main/resources/locale/locale_da.properties +++ b/src/main/resources/locale/locale_da.properties @@ -398,6 +398,7 @@ Commands.Party.Invite.1=[[YELLOW]]Skrive [[GREEN]]/party accept[[YELLOW]] for at Commands.Party.Invite= [[RED]]- Send gruppe invitation Commands.Party.Join=[[GRAY]]Joinede Gruppen: {0} Commands.Party.Create=[[GRAY]]Created Party: {0} +Commands.Party.Rename=[[GRAY]]Party name changed to: [[WHITE]]{0} Commands.Party.AlreadyExists=[[DARK_RED]]Party {0} already exists! Commands.Party.Kick=[[RED]]Du er blevet fjernet fra gruppen {0}! Commands.Party.Leave=[[RED]]Du har forladt denne gruppe @@ -446,6 +447,7 @@ Party.Help.7=[[RED]]To transfer ownership of your party, use [[DARK_AQUA]]/party Party.Help.8=[[RED]]To disband your party, use [[DARK_AQUA]]/party disband Party.InformedOnJoin={0} [[GREEN]] er nu med i din gruppe Party.InformedOnQuit={0} [[GREEN]] har forladt din gruppe +Party.InformedOnNameChange=[[GOLD]]{0} [[GREEN]]has set the party name to [[WHITE]]{1} Party.InvalidName=[[DARK_RED]]Dette er ikke et gruppe navn. Party.IsLocked=[[RED]]Denne gruppe er allerede l\u00e5st! Party.IsntLocked=[[RED]]Denne gruppe er ikke l\u00e5st! diff --git a/src/main/resources/locale/locale_de.properties b/src/main/resources/locale/locale_de.properties index c0dca7478..707aeeb79 100644 --- a/src/main/resources/locale/locale_de.properties +++ b/src/main/resources/locale/locale_de.properties @@ -398,6 +398,7 @@ Commands.Party.Invite.1=[[YELLOW]]Schreibe [[GREEN]]/party accept[[YELLOW]] um d Commands.Party.Invite= [[RED]]- Gruppen-Einladung versenden Commands.Party.Join=[[GRAY]]Beigetretene Gruppe: {0} Commands.Party.Create=[[GRAY]]Created Party: {0} +Commands.Party.Rename=[[GRAY]]Party name changed to: [[WHITE]]{0} Commands.Party.AlreadyExists=[[DARK_RED]]Party {0} already exists! Commands.Party.Kick=[[RED]]Du wurdest von folgender Gruppe gekickt: {0}! Commands.Party.Leave=[[RED]]Du hast diese Gruppe verlassen @@ -446,6 +447,7 @@ Party.Help.7=[[RED]]To transfer ownership of your party, use [[DARK_AQUA]]/party Party.Help.8=[[RED]]To disband your party, use [[DARK_AQUA]]/party disband Party.InformedOnJoin={0} [[GREEN]] ist der Gruppe beigetreten Party.InformedOnQuit={0} [[GREEN]] hat die Gruppe verlassen +Party.InformedOnNameChange=[[GOLD]]{0} [[GREEN]]has set the party name to [[WHITE]]{1} Party.InvalidName=[[DARK_RED]]Dies ist kein g\u00fcltiger Gruppen-Name. Party.IsLocked=[[RED]]Diese Gruppe ist bereits gesperrt! Party.IsntLocked=[[RED]]Diese Gruppe ist NICHT gesperrt! diff --git a/src/main/resources/locale/locale_en_US.properties b/src/main/resources/locale/locale_en_US.properties index b56ee6467..9127a2f98 100644 --- a/src/main/resources/locale/locale_en_US.properties +++ b/src/main/resources/locale/locale_en_US.properties @@ -450,6 +450,7 @@ Commands.Party.Invite.1=[[YELLOW]]Type [[GREEN]]/party accept[[YELLOW]] to accep Commands.Party.Invite= [[RED]]- Send party invite Commands.Party.Join=[[GRAY]]Joined Party: {0} Commands.Party.Create=[[GRAY]]Created Party: {0} +Commands.Party.Rename=[[GRAY]]Party name changed to: [[WHITE]]{0} Commands.Party.AlreadyExists=[[DARK_RED]]Party {0} already exists! Commands.Party.Kick=[[RED]]You were kicked from party {0}! Commands.Party.Leave=[[RED]]You have left that party @@ -500,6 +501,7 @@ Party.Help.7=[[RED]]To transfer ownership of your party, use [[DARK_AQUA]]/party Party.Help.8=[[RED]]To disband your party, use [[DARK_AQUA]]/party disband Party.InformedOnJoin={0} [[GREEN]]has joined your party Party.InformedOnQuit={0} [[GREEN]]has left your party +Party.InformedOnNameChange=[[GOLD]]{0} [[GREEN]]has set the party name to [[WHITE]]{1} Party.InvalidName=[[DARK_RED]]That is not a valid party name. Party.IsLocked=[[RED]]This party is already locked! Party.IsntLocked=[[RED]]This party is not locked! diff --git a/src/main/resources/locale/locale_es.properties b/src/main/resources/locale/locale_es.properties index 117f0efec..433f3c038 100644 --- a/src/main/resources/locale/locale_es.properties +++ b/src/main/resources/locale/locale_es.properties @@ -398,6 +398,7 @@ Commands.Party.Invite.1=[[YELLOW]]Ingresa [[GREEN]]/party accept[[YELLOW]] para Commands.Party.Invite= [[RED]]- Enviar invitaci\u00f3n al grupo Commands.Party.Join=[[GRAY]]Se uni\u00f3 al grupo: {0} Commands.Party.Create=[[GRAY]]Created Party: {0} +Commands.Party.Rename=[[GRAY]]Party name changed to: [[WHITE]]{0} Commands.Party.AlreadyExists=[[DARK_RED]]Party {0} already exists! Commands.Party.Kick=[[RED]]\u00a1Fuiste expulsado del grupo {0}! Commands.Party.Leave=[[RED]]Abandonaste el grupo @@ -446,6 +447,7 @@ Party.Help.7=[[RED]]To transfer ownership of your party, use [[DARK_AQUA]]/party Party.Help.8=[[RED]]To disband your party, use [[DARK_AQUA]]/party disband Party.InformedOnJoin={0} [[GREEN]] ha entrado a tu fiesta Party.InformedOnQuit={0} [[GREEN]]abandon\u00f3 el grupo +Party.InformedOnNameChange=[[GOLD]]{0} [[GREEN]]has set the party name to [[WHITE]]{1} Party.InvalidName=[[DARK_RED]]Ese no es un nombre de grupo v\u00e1lido. Party.IsLocked=[[RED]]\u00a1Este grupo ya est\u00e1 bloqueado! Party.IsntLocked=[[RED]]\u00a1Este grupo no est\u00e1 bloqueado! diff --git a/src/main/resources/locale/locale_fi.properties b/src/main/resources/locale/locale_fi.properties index 645de9d70..9407da4e6 100644 --- a/src/main/resources/locale/locale_fi.properties +++ b/src/main/resources/locale/locale_fi.properties @@ -398,6 +398,7 @@ Commands.Party.Invite.1=[[YELLOW]]Type [[GREEN]]/party accept[[YELLOW]] to accep Commands.Party.Invite= [[RED]]- Send party invite Commands.Party.Join=[[GRAY]]Joined Party: {0} Commands.Party.Create=[[GRAY]]Created Party: {0} +Commands.Party.Rename=[[GRAY]]Party name changed to: [[WHITE]]{0} Commands.Party.AlreadyExists=[[DARK_RED]]Party {0} already exists! Commands.Party.Kick=[[RED]]You were kicked from party {0}! Commands.Party.Leave=[[RED]]You have left that party @@ -446,6 +447,7 @@ Party.Help.7=[[RED]]To transfer ownership of your party, use [[DARK_AQUA]]/party Party.Help.8=[[RED]]To disband your party, use [[DARK_AQUA]]/party disband Party.InformedOnJoin={0} [[GREEN]] on liittynyt ryhm\u00e4\u00e4n Party.InformedOnQuit={0} [[GREEN]] on l\u00e4htenyt ryhm\u00e4st\u00e4 +Party.InformedOnNameChange=[[GOLD]]{0} [[GREEN]]has set the party name to [[WHITE]]{1} Party.InvalidName=[[DARK_RED]]That is not a valid party name. Party.IsLocked=[[RED]]This party is already locked! Party.IsntLocked=[[RED]]This party is not locked! diff --git a/src/main/resources/locale/locale_fr.properties b/src/main/resources/locale/locale_fr.properties index 3b507b3b2..600ebb012 100644 --- a/src/main/resources/locale/locale_fr.properties +++ b/src/main/resources/locale/locale_fr.properties @@ -398,6 +398,7 @@ Commands.Party.Invite.1=[[YELLOW]]Faites [[GREEN]]/party accept[[YELLOW]] pour a Commands.Party.Invite= [[RED]]- Envoyer une invitation Commands.Party.Join=[[GRAY]]Rejoint le groupe: {0} Commands.Party.Create=[[GRAY]]Created Party: {0} +Commands.Party.Rename=[[GRAY]]Party name changed to: [[WHITE]]{0} Commands.Party.AlreadyExists=[[DARK_RED]]Party {0} already exists! Commands.Party.Kick=[[RED]]Vous avez \u00e9t\u00e9 \u00e9ject\u00e9 du groupe {0} ! Commands.Party.Leave=[[RED]]Vous avez quitt\u00e9 le groupe @@ -446,6 +447,7 @@ Party.Help.7=[[RED]]To transfer ownership of your party, use [[DARK_AQUA]]/party Party.Help.8=[[RED]]To disband your party, use [[DARK_AQUA]]/party disband Party.InformedOnJoin={0} [[GREEN]] a rejoint votre groupe Party.InformedOnQuit={0} [[GREEN]] a quitt\u00e9 votre groupe +Party.InformedOnNameChange=[[GOLD]]{0} [[GREEN]]has set the party name to [[WHITE]]{1} Party.InvalidName=[[DARK_RED]]Ce groupe n\'existe pas. Party.IsLocked=[[RED]]Ce groupe est d\u00e9j\u00e0 verrouill\u00e9 ! Party.IsntLocked=[[RED]]Ce groupe n\'est pas verrouill\u00e9 ! diff --git a/src/main/resources/locale/locale_it.properties b/src/main/resources/locale/locale_it.properties index d6212d1b3..23a097575 100644 --- a/src/main/resources/locale/locale_it.properties +++ b/src/main/resources/locale/locale_it.properties @@ -398,6 +398,7 @@ Commands.Party.Invite.1=[[YELLOW]]Digita [[GREEN]]/party accept[[YELLOW]] per ac Commands.Party.Invite= [[RED]]- Manda un invito nella compagnia Commands.Party.Join=[[GRAY]]Ti sei unito alla Compagnia: {0} Commands.Party.Create=[[GRAY]]Created Party: {0} +Commands.Party.Rename=[[GRAY]]Party name changed to: [[WHITE]]{0} Commands.Party.AlreadyExists=[[DARK_RED]]Party {0} already exists! Commands.Party.Kick=[[RED]]Sei stato sospeso dalla tua compagnia {0}! Commands.Party.Leave=[[RED]]Hai abbandonato quella compagnia @@ -446,6 +447,7 @@ Party.Help.7=[[RED]]To transfer ownership of your party, use [[DARK_AQUA]]/party Party.Help.8=[[RED]]To disband your party, use [[DARK_AQUA]]/party disband Party.InformedOnJoin={0} [[GREEN]] si \u00e8 unito alla tua compagnia Party.InformedOnQuit={0} [[GREEN]] ha lasciato la tua compagnia +Party.InformedOnNameChange=[[GOLD]]{0} [[GREEN]]has set the party name to [[WHITE]]{1} Party.InvalidName=[[DARK_RED]]Questo non \u00e8 un nome di compagnia valido. Party.IsLocked=[[RED]]Questa compagnia \u00e8 gi\u00e0 chiusa! Party.IsntLocked=[[RED]]Questa compagnia non \u00e8 chiusa! diff --git a/src/main/resources/locale/locale_ko.properties b/src/main/resources/locale/locale_ko.properties index 7c3671ede..fe69bd34d 100644 --- a/src/main/resources/locale/locale_ko.properties +++ b/src/main/resources/locale/locale_ko.properties @@ -398,6 +398,7 @@ Commands.Party.Invite.1=[[YELLOW]]Type [[GREEN]]/party accept[[YELLOW]] to accep Commands.Party.Invite= [[RED]]- Send party invite Commands.Party.Join=[[GRAY]]Joined Party: {0} Commands.Party.Create=[[GRAY]]Created Party: {0} +Commands.Party.Rename=[[GRAY]]Party name changed to: [[WHITE]]{0} Commands.Party.AlreadyExists=[[DARK_RED]]Party {0} already exists! Commands.Party.Kick=[[\ub808\ub4dc]] \ub2f9\uc2e0\uc740 \uc790 {0}\uc5d0\uc11c \ucad3\uaca8\ub418\uc5c8\uc2b5\ub2c8\ub2e4! Commands.Party.Leave=[[\ub808\ub4dc]] \ub2f9\uc2e0\uc774 \ub0a8\uaca8 \ub450\uc5c8\ub358 \uadf8 \ub2f9\uc0ac\uc790 @@ -446,6 +447,7 @@ Party.Help.7=[[RED]]To transfer ownership of your party, use [[DARK_AQUA]]/party Party.Help.8=[[RED]]To disband your party, use [[DARK_AQUA]]/party disband Party.InformedOnJoin={0} [[GREEN]] has joined your party Party.InformedOnQuit={0} [[\ub179\uc0c9]] \ud30c\ud2f0\ub97c \ub9c8\ucce4\uc2b5\ub2c8\ub2e4 +Party.InformedOnNameChange=[[GOLD]]{0} [[GREEN]]has set the party name to [[WHITE]]{1} Party.InvalidName=[[DARK_RED]]That is not a valid party name. Party.IsLocked=[[RED]]This party is already locked! Party.IsntLocked=[[RED]]This party is not locked! diff --git a/src/main/resources/locale/locale_lv.properties b/src/main/resources/locale/locale_lv.properties index d6f671e5c..1a3a0c3a8 100644 --- a/src/main/resources/locale/locale_lv.properties +++ b/src/main/resources/locale/locale_lv.properties @@ -398,6 +398,7 @@ Commands.Party.Invite.1=[[YELLOW]]Type [[GREEN]]/party accept[[YELLOW]] to accep Commands.Party.Invite= [[RED]]- Send party invite Commands.Party.Join=[[GRAY]]Joined Party: {0} Commands.Party.Create=[[GRAY]]Created Party: {0} +Commands.Party.Rename=[[GRAY]]Party name changed to: [[WHITE]]{0} Commands.Party.AlreadyExists=[[DARK_RED]]Party {0} already exists! Commands.Party.Kick=[[RED]]You were kicked from party {0}! Commands.Party.Leave=[[RED]]You have left that party @@ -446,6 +447,7 @@ Party.Help.7=[[RED]]To transfer ownership of your party, use [[DARK_AQUA]]/party Party.Help.8=[[RED]]To disband your party, use [[DARK_AQUA]]/party disband Party.InformedOnJoin={0} [[GREEN]] has joined your party Party.InformedOnQuit={0} [[GREEN]] has left your party +Party.InformedOnNameChange=[[GOLD]]{0} [[GREEN]]has set the party name to [[WHITE]]{1} Party.InvalidName=[[DARK_RED]]That is not a valid party name. Party.IsLocked=[[RED]]This party is already locked! Party.IsntLocked=[[RED]]This party is not locked! diff --git a/src/main/resources/locale/locale_nl.properties b/src/main/resources/locale/locale_nl.properties index 066ac3f55..9c1694217 100644 --- a/src/main/resources/locale/locale_nl.properties +++ b/src/main/resources/locale/locale_nl.properties @@ -398,6 +398,7 @@ Commands.Party.Invite.1=[[YELLOW]]Typ [[GREEN]]/party accept[[YELLOW]] om de uit Commands.Party.Invite= [[RED]]- Stuur een groep uitnodiging Commands.Party.Join=[[GRAY]]Groep betreden: {0} Commands.Party.Create=[[GRAY]]Groep aangemaakt: {0} +Commands.Party.Rename=[[GRAY]]Groep naam veranderd naar: [[WHITE]]{0} Commands.Party.AlreadyExists=[[DARK_RED]]Groep {0} bestaat al! Commands.Party.Kick=[[RED]]Je bent verwijderd uit de groep {0}! Commands.Party.Leave=[[RED]]Je hebt de groep verlaten @@ -446,6 +447,7 @@ Party.Help.7=[[RED]]To transfer ownership of your party, use [[DARK_AQUA]]/party Party.Help.8=[[RED]]To disband your party, use [[DARK_AQUA]]/party disband Party.InformedOnJoin={0} [[GREEN]] is tot je groep toegetreden Party.InformedOnQuit={0} [[GREEN]] heeft je groep verlaten +Party.InformedOnNameChange=[[GOLD]]{0} [[GREEN]]heeft de groeps naam veranderd naar [[WHITE]]{1} Party.InvalidName=[[DARK_RED]]That is not a valid party name. Party.IsLocked=[[RED]]This party is already locked! Party.IsntLocked=[[RED]]This party is not locked! diff --git a/src/main/resources/locale/locale_no.properties b/src/main/resources/locale/locale_no.properties index 168745476..d5553f0cb 100644 --- a/src/main/resources/locale/locale_no.properties +++ b/src/main/resources/locale/locale_no.properties @@ -398,6 +398,7 @@ Commands.Party.Invite.1=[[YELLOW]]Type [[GREEN]]/party accept[[YELLOW]] to accep Commands.Party.Invite= [[RED]]- Send party invite Commands.Party.Join=[[GRAY]]Joined Party: {0} Commands.Party.Create=[[GRAY]]Created Party: {0} +Commands.Party.Rename=[[GRAY]]Party name changed to: [[WHITE]]{0} Commands.Party.AlreadyExists=[[DARK_RED]]Party {0} already exists! Commands.Party.Kick=[[RED]]Du var sparket fra partyet! {0}! Commands.Party.Leave=[[RED]]You have left that party @@ -446,6 +447,7 @@ Party.Help.7=[[RED]]To transfer ownership of your party, use [[DARK_AQUA]]/party Party.Help.8=[[RED]]To disband your party, use [[DARK_AQUA]]/party disband Party.InformedOnJoin={0} [[GREEN]] has joined your party Party.InformedOnQuit={0} [[GREEN]] has left your party +Party.InformedOnNameChange=[[GOLD]]{0} [[GREEN]]has set the party name to [[WHITE]]{1} Party.InvalidName=[[DARK_RED]]That is not a valid party name. Party.IsLocked=[[RED]]This party is already locked! Party.IsntLocked=[[RED]]This party is not locked! diff --git a/src/main/resources/locale/locale_pl.properties b/src/main/resources/locale/locale_pl.properties index 28d24046c..83ef29555 100644 --- a/src/main/resources/locale/locale_pl.properties +++ b/src/main/resources/locale/locale_pl.properties @@ -398,6 +398,7 @@ Commands.Party.Invite.1=[[YELLOW]]Napisz [[GREEN]]/party accept[[YELLOW]] aby za Commands.Party.Invite= [[RED]]- Send party invite Commands.Party.Join=[[GRAY]]Dolaczyles do Grupy: {0} Commands.Party.Create=[[GRAY]]Created Party: {0} +Commands.Party.Rename=[[GRAY]]Party name changed to: [[WHITE]]{0} Commands.Party.AlreadyExists=[[DARK_RED]]Party {0} already exists! Commands.Party.Kick=[[RED]]Zosta\u0142e\u015b wyrzucony z dru\u017cyny {0}! Commands.Party.Leave=[[RED]]Opusciles grupe @@ -446,6 +447,7 @@ Party.Help.7=[[RED]]To transfer ownership of your party, use [[DARK_AQUA]]/party Party.Help.8=[[RED]]To disband your party, use [[DARK_AQUA]]/party disband Party.InformedOnJoin={0} [[GREEN]] dolaczyl do twojej grupy. Party.InformedOnQuit={0} [[GREEN]] wyszedl z twojej grupy. +Party.InformedOnNameChange=[[GOLD]]{0} [[GREEN]]has set the party name to [[WHITE]]{1} Party.InvalidName=[[DARK_RED]]That is not a valid party name. Party.IsLocked=[[RED]]Ta grupa jest juz zamknieta! Party.IsntLocked=[[RED]]This party is not locked! diff --git a/src/main/resources/locale/locale_pl_PL.properties b/src/main/resources/locale/locale_pl_PL.properties index 2280448f3..b5ec8caff 100644 --- a/src/main/resources/locale/locale_pl_PL.properties +++ b/src/main/resources/locale/locale_pl_PL.properties @@ -398,6 +398,7 @@ Commands.Party.Invite.1=[[YELLOW]]Type [[GREEN]]/party accept[[YELLOW]] to accep Commands.Party.Invite= [[RED]]- Send party invite Commands.Party.Join=[[GRAY]]Joined Party: {0} Commands.Party.Create=[[GRAY]]Created Party: {0} +Commands.Party.Rename=[[GRAY]]Party name changed to: [[WHITE]]{0} Commands.Party.AlreadyExists=[[DARK_RED]]Party {0} already exists! Commands.Party.Kick=[[RED]]You were kicked from party {0}! Commands.Party.Leave=[[RED]]You have left that party @@ -446,6 +447,7 @@ Party.Help.7=[[RED]]To transfer ownership of your party, use [[DARK_AQUA]]/party Party.Help.8=[[RED]]To disband your party, use [[DARK_AQUA]]/party disband Party.InformedOnJoin={0} [[GREEN]] has joined your party Party.InformedOnQuit={0} [[GREEN]] has left your party +Party.InformedOnNameChange=[[GOLD]]{0} [[GREEN]]has set the party name to [[WHITE]]{1} Party.InvalidName=[[DARK_RED]]That is not a valid party name. Party.IsLocked=[[RED]]This party is already locked! Party.IsntLocked=[[RED]]This party is not locked! diff --git a/src/main/resources/locale/locale_pt_BR.properties b/src/main/resources/locale/locale_pt_BR.properties index 45f8bc848..871f4d0d9 100644 --- a/src/main/resources/locale/locale_pt_BR.properties +++ b/src/main/resources/locale/locale_pt_BR.properties @@ -398,6 +398,7 @@ Commands.Party.Invite.1=[[YELLOW]]Type [[GREEN]]/party accept[[YELLOW]] to accep Commands.Party.Invite= [[RED]]- Send party invite Commands.Party.Join=[[GRAY]]Joined Party: {0} Commands.Party.Create=[[GRAY]]Created Party: {0} +Commands.Party.Rename=[[GRAY]]Party name changed to: [[WHITE]]{0} Commands.Party.AlreadyExists=[[DARK_RED]]Party {0} already exists! Commands.Party.Kick=[[RED]]You were kicked from party {0}! Commands.Party.Leave=[[RED]]You have left that party @@ -446,6 +447,7 @@ Party.Help.7=[[RED]]To transfer ownership of your party, use [[DARK_AQUA]]/party Party.Help.8=[[RED]]To disband your party, use [[DARK_AQUA]]/party disband Party.InformedOnJoin={0} [[GREEN]] entrou na equipe Party.InformedOnQuit={0} [[GREEN]] saiu da equipe +Party.InformedOnNameChange=[[GOLD]]{0} [[GREEN]]has set the party name to [[WHITE]]{1} Party.InvalidName=[[DARK_RED]]That is not a valid party name. Party.IsLocked=[[RED]]This party is already locked! Party.IsntLocked=[[RED]]This party is not locked! diff --git a/src/main/resources/locale/locale_ru.properties b/src/main/resources/locale/locale_ru.properties index 2e7c5a38e..7066b44e7 100644 --- a/src/main/resources/locale/locale_ru.properties +++ b/src/main/resources/locale/locale_ru.properties @@ -398,6 +398,7 @@ Commands.Party.Invite.1=[[YELLOW]]\u041d\u0430\u043f\u0438\u0448\u0438\u0442\u04 Commands.Party.Invite= [[RED]]- \u041f\u043e\u0441\u043b\u0430\u0442\u044c \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435 \u0432 \u0433\u0440\u0443\u043f\u043f\u0443 Commands.Party.Join=[[GRAY]]\u0412\u044b \u043f\u0440\u0438\u0441\u043e\u0435\u0434\u0435\u043d\u0438\u043b\u0438\u0441\u044c \u043a \u0413\u0440\u0443\u043f\u043f\u0435: {0} Commands.Party.Create=[[GRAY]]Created Party: {0} +Commands.Party.Rename=[[GRAY]]Party name changed to: [[WHITE]]{0} Commands.Party.AlreadyExists=[[DARK_RED]]Party {0} already exists! Commands.Party.Kick=[[RED]]\u0412\u044b \u0432\u044b\u0433\u043d\u0430\u043d\u044b \u0438\u0437 \u0433\u0440\u0443\u043f\u043f\u044b {0}! Commands.Party.Leave=[[RED]]\u0412\u044b \u043f\u043e\u043a\u0438\u043d\u0443\u043b\u0438 \u0433\u0440\u0443\u043f\u043f\u0443 @@ -446,6 +447,7 @@ Party.Help.7=[[RED]]To transfer ownership of your party, use [[DARK_AQUA]]/party Party.Help.8=[[RED]]To disband your party, use [[DARK_AQUA]]/party disband Party.InformedOnJoin={0} [[GREEN]] \u043f\u0440\u0438\u0441\u043e\u0435\u0434\u0435\u043d\u0438\u043b\u0441\u044f \u043a \u0412\u0430\u0448\u0435\u0439 \u0433\u0440\u0443\u043f\u043f\u0435 Party.InformedOnQuit={0} [[GREEN]] \u043f\u043e\u043a\u0438\u043d\u0443\u043b \u0412\u0430\u0448\u0443 \u0433\u0440\u0443\u043f\u043f\u0443 +Party.InformedOnNameChange=[[GOLD]]{0} [[GREEN]]has set the party name to [[WHITE]]{1} Party.InvalidName=[[DARK_RED]]\u041d\u0435\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0433\u0440\u0443\u043f\u043f\u044b. Party.IsLocked=[[RED]]\u042d\u0442\u0430 \u0433\u0440\u0443\u043f\u043f\u0430 \u0443\u0436\u0435 \u0437\u0430\u043a\u0440\u044b\u0442\u0430! Party.IsntLocked=[[RED]]\u042d\u0442\u0430 \u0433\u0440\u0443\u043f\u043f\u0430 \u043d\u0435 \u0437\u0430\u043a\u0440\u044b\u0442\u0430! diff --git a/src/main/resources/locale/locale_sv.properties b/src/main/resources/locale/locale_sv.properties index 21f951e79..b413b628b 100644 --- a/src/main/resources/locale/locale_sv.properties +++ b/src/main/resources/locale/locale_sv.properties @@ -398,6 +398,7 @@ Commands.Party.Invite.1=[[YELLOW]]Type [[GREEN]]/party accept[[YELLOW]] to accep Commands.Party.Invite= [[RED]]- Send party invite Commands.Party.Join=[[GRAY]]Joined Party: {0} Commands.Party.Create=[[GRAY]]Created Party: {0} +Commands.Party.Rename=[[GRAY]]Party name changed to: [[WHITE]]{0} Commands.Party.AlreadyExists=[[DARK_RED]]Party {0} already exists! Commands.Party.Kick=[[RED]]You were kicked from party {0}! Commands.Party.Leave=[[RED]]You have left that party @@ -446,6 +447,7 @@ Party.Help.7=[[RED]]To transfer ownership of your party, use [[DARK_AQUA]]/party Party.Help.8=[[RED]]To disband your party, use [[DARK_AQUA]]/party disband Party.InformedOnJoin={0} [[GREEN]] has joined your party Party.InformedOnQuit={0} [[GREEN]] has left your party +Party.InformedOnNameChange=[[GOLD]]{0} [[GREEN]]has set the party name to [[WHITE]]{1} Party.InvalidName=[[DARK_RED]]That is not a valid party name. Party.IsLocked=[[RED]]This party is already locked! Party.IsntLocked=[[RED]]This party is not locked! diff --git a/src/main/resources/locale/locale_tr_TR.properties b/src/main/resources/locale/locale_tr_TR.properties index e8fdc94de..d31f74ec7 100644 --- a/src/main/resources/locale/locale_tr_TR.properties +++ b/src/main/resources/locale/locale_tr_TR.properties @@ -398,6 +398,7 @@ Commands.Party.Invite.1=[[YELLOW]]Type [[GREEN]]/party accept[[YELLOW]] to accep Commands.Party.Invite= [[RED]]- Send party invite Commands.Party.Join=[[GRAY]]Joined Party: {0} Commands.Party.Create=[[GRAY]]Created Party: {0} +Commands.Party.Rename=[[GRAY]]Party name changed to: [[WHITE]]{0} Commands.Party.AlreadyExists=[[DARK_RED]]Party {0} already exists! Commands.Party.Kick=[[RED]]You were kicked from party {0}! Commands.Party.Leave=[[RED]]You have left that party @@ -446,6 +447,7 @@ Party.Help.7=[[RED]]To transfer ownership of your party, use [[DARK_AQUA]]/party Party.Help.8=[[RED]]To disband your party, use [[DARK_AQUA]]/party disband Party.InformedOnJoin={0} [[GREEN]] has joined your party Party.InformedOnQuit={0} [[GREEN]] has left your party +Party.InformedOnNameChange=[[GOLD]]{0} [[GREEN]]has set the party name to [[WHITE]]{1} Party.InvalidName=[[DARK_RED]]That is not a valid party name. Party.IsLocked=[[RED]]This party is already locked! Party.IsntLocked=[[RED]]This party is not locked! diff --git a/src/main/resources/locale/locale_zh_CN.properties b/src/main/resources/locale/locale_zh_CN.properties index ad98d1725..355cc135d 100644 --- a/src/main/resources/locale/locale_zh_CN.properties +++ b/src/main/resources/locale/locale_zh_CN.properties @@ -398,6 +398,7 @@ Commands.Party.Invite.1=[[YELLOW]]\u8f93\u5165 [[GREEN]]/party accept[[YELLOW]] Commands.Party.Invite= [[RED]]- \u53d1\u9001\u961f\u4f0d\u9080\u8bf7 Commands.Party.Join=[[GRAY]]\u52a0\u5165\u961f\u4f0d: {0} Commands.Party.Create=[[GRAY]]Created Party: {0} +Commands.Party.Rename=[[GRAY]]Party name changed to: [[WHITE]]{0} Commands.Party.AlreadyExists=[[DARK_RED]]Party {0} already exists! Commands.Party.Kick=[[RED]]\u4f60\u5df2\u88ab {0} \u8e22\u51fa! Commands.Party.Leave=[[RED]]\u4f60\u79bb\u5f00\u4e86\u8fd9\u652f\u961f\u4f0d @@ -446,6 +447,7 @@ Party.Help.7=[[RED]]To transfer ownership of your party, use [[DARK_AQUA]]/party Party.Help.8=[[RED]]To disband your party, use [[DARK_AQUA]]/party disband Party.InformedOnJoin={0} [[GREEN]] \u52a0\u5165\u4e86\u961f\u4f0d Party.InformedOnQuit={0} [[GREEN]] \u5df2\u7ecf\u79bb\u5f00\u4e86\u8fd9\u652f\u961f\u4f0d +Party.InformedOnNameChange=[[GOLD]]{0} [[GREEN]]has set the party name to [[WHITE]]{1} Party.InvalidName=[[DARK_RED]]\u90a3\u4e0d\u662f\u4e00\u4e2a\u6709\u6548\u7684\u961f\u4f0d\u540d\u5b57. Party.IsLocked=[[RED]]\u8fd9\u4e2a\u961f\u4f0d\u5df2\u7ecf\u9501\u5b9a! Party.IsntLocked=[[RED]]\u8fd9\u4e2a\u961f\u4f0d\u5e76\u6ca1\u6709\u9501\u5b9a! diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 76521dde8..d51b21f4f 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -724,6 +724,7 @@ permissions: mcmmo.commands.party.lock: true mcmmo.commands.party.unlock: true mcmmo.commands.party.password: true + mcmmo.commands.party.rename: true mcmmo.chat.*: description: Implies all mcmmo.chat permissions. (Warning, contains adminchat) children: