Fixed all compile errors ( Took forever )

This commit is contained in:
ProSavage
2018-07-28 00:31:58 -05:00
parent 403a086ea7
commit 51f157931f
15 changed files with 62 additions and 68 deletions

View File

@@ -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);

View File

@@ -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);
}
}
}

View File

@@ -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;
}