mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
PTP Exploit fix attempt #2
This commit is contained in:
parent
8669582e8f
commit
24bdd10f7f
@ -11,6 +11,7 @@ import com.gmail.nossr50.mcMMO;
|
|||||||
import com.gmail.nossr50.mcPermissions;
|
import com.gmail.nossr50.mcPermissions;
|
||||||
import com.gmail.nossr50.datatypes.PlayerProfile;
|
import com.gmail.nossr50.datatypes.PlayerProfile;
|
||||||
import com.gmail.nossr50.locale.mcLocale;
|
import com.gmail.nossr50.locale.mcLocale;
|
||||||
|
import com.gmail.nossr50.party.Party;
|
||||||
|
|
||||||
public class PtpCommand implements CommandExecutor {
|
public class PtpCommand implements CommandExecutor {
|
||||||
private final mcMMO plugin;
|
private final mcMMO plugin;
|
||||||
@ -35,11 +36,12 @@ public class PtpCommand implements CommandExecutor {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(PP.getParty() == null || PP.getParty() == "")
|
if(Party.getInstance().isParty(PP.getParty()))
|
||||||
{
|
{
|
||||||
player.sendMessage(ChatColor.RED+"You are not in a party!");
|
player.sendMessage(ChatColor.RED+"You are not in a party!");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (args.length < 1) {
|
if (args.length < 1) {
|
||||||
player.sendMessage(ChatColor.RED + "Usage is /ptp <playername>");
|
player.sendMessage(ChatColor.RED + "Usage is /ptp <playername>");
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user