Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Commit ffc4812

Browse files
committed
Edited tpBanner to work correctly
1 parent ebe80a0 commit ffc4812

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/com/massivecraft/factions/cmd/CmdTpBanner.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.massivecraft.factions.cmd;
22

33
import com.massivecraft.factions.SavageFactions;
4+
import com.massivecraft.factions.listeners.FactionsBlockListener;
45
import com.massivecraft.factions.listeners.FactionsPlayerListener;
56
import com.massivecraft.factions.struct.Permission;
67
import com.massivecraft.factions.util.WarmUpUtil;
@@ -31,12 +32,12 @@ public void perform() {
3132

3233
final FactionsPlayerListener fpl = new FactionsPlayerListener(SavageFactions.plugin);
3334

34-
if (FactionsPlayerListener.bannerLocations.containsKey(fme.getTag())) {
35+
if (FactionsBlockListener.bannerLocations.containsKey(fme.getTag())) {
3536
fme.msg(TL.COMMAND_TPBANNER_SUCCESS);
3637
this.doWarmUp(WarmUpUtil.Warmup.BANNER, TL.WARMUPS_NOTIFY_TELEPORT, "Banner", new Runnable() {
3738
@Override
3839
public void run() {
39-
me.teleport(FactionsPlayerListener.bannerLocations.get(fme.getTag()));
40+
me.teleport(FactionsBlockListener.bannerLocations.get(fme.getTag()));
4041
}
4142
}, this.p.getConfig().getLong("warmups.f-banner", 0));
4243
} else {

0 commit comments

Comments
 (0)