Edited tpBanner to work correctly

This commit is contained in:
ProSavage 2018-10-24 10:48:08 -05:00
parent ebe80a0749
commit ffc4812be9

View File

@ -1,6 +1,7 @@
package com.massivecraft.factions.cmd; package com.massivecraft.factions.cmd;
import com.massivecraft.factions.SavageFactions; import com.massivecraft.factions.SavageFactions;
import com.massivecraft.factions.listeners.FactionsBlockListener;
import com.massivecraft.factions.listeners.FactionsPlayerListener; import com.massivecraft.factions.listeners.FactionsPlayerListener;
import com.massivecraft.factions.struct.Permission; import com.massivecraft.factions.struct.Permission;
import com.massivecraft.factions.util.WarmUpUtil; import com.massivecraft.factions.util.WarmUpUtil;
@ -31,12 +32,12 @@ public class CmdTpBanner extends FCommand {
final FactionsPlayerListener fpl = new FactionsPlayerListener(SavageFactions.plugin); final FactionsPlayerListener fpl = new FactionsPlayerListener(SavageFactions.plugin);
if (FactionsPlayerListener.bannerLocations.containsKey(fme.getTag())) { if (FactionsBlockListener.bannerLocations.containsKey(fme.getTag())) {
fme.msg(TL.COMMAND_TPBANNER_SUCCESS); fme.msg(TL.COMMAND_TPBANNER_SUCCESS);
this.doWarmUp(WarmUpUtil.Warmup.BANNER, TL.WARMUPS_NOTIFY_TELEPORT, "Banner", new Runnable() { this.doWarmUp(WarmUpUtil.Warmup.BANNER, TL.WARMUPS_NOTIFY_TELEPORT, "Banner", new Runnable() {
@Override @Override
public void run() { public void run() {
me.teleport(FactionsPlayerListener.bannerLocations.get(fme.getTag())); me.teleport(FactionsBlockListener.bannerLocations.get(fme.getTag()));
} }
}, this.p.getConfig().getLong("warmups.f-banner", 0)); }, this.p.getConfig().getLong("warmups.f-banner", 0));
} else { } else {