Fixed all compile errors ( Took forever )
This commit is contained in:
@@ -52,7 +52,7 @@ public class CmdBanner extends FCommand {
|
||||
|
||||
|
||||
} else {
|
||||
warBanner = P.p.createItem(Material.BANNER, 1, (short) 1, P.p.getConfig().getString("fbanners.Item.Name"), P.p.getConfig().getStringList("fbanners.Item.Lore"));
|
||||
warBanner = P.p.createItem(Material.LEGACY_BANNER, 1, (short) 1, P.p.getConfig().getString("fbanners.Item.Name"), P.p.getConfig().getStringList("fbanners.Item.Lore"));
|
||||
}
|
||||
fme.msg(TL.COMMAND_BANNER_SUCCESS);
|
||||
warBanner.setAmount(1);
|
||||
|
||||
@@ -128,8 +128,8 @@ public class CmdSeeChunk extends FCommand {
|
||||
if (useParticles) {
|
||||
this.effect.display(0, 0, 0, 0, 1, loc, player);
|
||||
} else {
|
||||
int typeId = blockY % 5 == 0 ? Material.REDSTONE_LAMP_ON.getId() : Material.STAINED_GLASS.getId();
|
||||
VisualizeUtil.addLocation(player, loc, typeId);
|
||||
Material type = blockY % 5 == 0 ? Material.LEGACY_REDSTONE_LAMP_ON : Material.LEGACY_STAINED_GLASS;
|
||||
VisualizeUtil.addLocation(player, loc, type);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ public class CmdSetBanner extends FCommand {
|
||||
}
|
||||
|
||||
public void perform() {
|
||||
if (me.getItemInHand().getType() != Material.BANNER) {
|
||||
if (me.getItemInHand().getType() != Material.LEGACY_BANNER) {
|
||||
fme.msg(TL.COMMAND_SETBANNER_NOTBANNER);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user