mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
parent
10dd7619bf
commit
79a1ef5d3e
@ -10,6 +10,7 @@ Key:
|
||||
Version 1.5.01-dev
|
||||
+ Added support for `MATERIAL|data` format in treasures.yml
|
||||
= Fixed bug where the Updater was running on the main thread.
|
||||
= Fixed bug when players would use /ptp without being in a party
|
||||
! Vanished players no longer get hit by AoE effects
|
||||
|
||||
Version 1.5.00
|
||||
|
@ -43,6 +43,12 @@ public class PtpCommand implements TabExecutor {
|
||||
|
||||
Player player = (Player) sender;
|
||||
McMMOPlayer mcMMOPlayer = UserManager.getPlayer(player);
|
||||
|
||||
if (!mcMMOPlayer.inParty()) {
|
||||
sender.sendMessage(LocaleLoader.getString("Commands.Party.None"));
|
||||
return true;
|
||||
}
|
||||
|
||||
Party party = mcMMOPlayer.getParty();
|
||||
|
||||
if (party.getLevel() < Config.getInstance().getPartyFeatureUnlockLevel(PartyFeature.TELEPORT)) {
|
||||
|
Loading…
Reference in New Issue
Block a user