Removing Static Abuse - WorldBlackList -> WorldBlackListManager

This commit is contained in:
nossr50
2019-07-03 22:31:59 -07:00
parent bd0a673838
commit 8b39224cbc
23 changed files with 1426 additions and 1380 deletions

View File

@@ -1,7 +1,6 @@
package com.gmail.nossr50.commands.party.teleport;
import com.gmail.nossr50.commands.CommandConstants;
import com.gmail.nossr50.config.WorldBlacklist;
import com.gmail.nossr50.datatypes.party.Party;
import com.gmail.nossr50.datatypes.party.PartyFeature;
import com.gmail.nossr50.datatypes.party.PartyTeleportRecord;
@@ -53,7 +52,7 @@ public class PtpCommand implements TabExecutor {
}
/* WORLD BLACKLIST CHECK */
if (WorldBlacklist.isWorldBlacklisted(player.getWorld()))
if (pluginRef.getDynamicSettingsManager().isWorldBlacklisted(player.getWorld().getName()))
return true;
if (!pluginRef.getUserManager().hasPlayerDataKey(player)) {