Banners now work in 1.7-1.13 ( Tested )
This commit is contained in:
parent
de3f0c4c87
commit
70e069dc05
2
pom.xml
2
pom.xml
@ -297,7 +297,7 @@
|
||||
<dependency>
|
||||
<groupId>com.drtshock</groupId>
|
||||
<artifactId>PlayerVaultsX</artifactId>
|
||||
<version>4.0.6-SNAPSHOT</version>
|
||||
<version>4.0.6</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
@ -52,7 +52,15 @@ public class CmdBanner extends FCommand {
|
||||
|
||||
|
||||
} else {
|
||||
warBanner = P.p.createItem(Material.LEGACY_BANNER, 1, (short) 1, P.p.getConfig().getString("fbanners.Item.Name"), P.p.getConfig().getStringList("fbanners.Item.Lore"));
|
||||
Material banner;
|
||||
if (!P.p.mc113) {
|
||||
banner = Material.valueOf("BANNER");
|
||||
} else {
|
||||
banner = Material.valueOf("LEGACY_BANNER");
|
||||
}
|
||||
|
||||
|
||||
warBanner = P.p.createItem(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);
|
||||
|
@ -20,7 +20,7 @@ public class CmdSetBanner extends FCommand {
|
||||
}
|
||||
|
||||
public void perform() {
|
||||
if (me.getItemInHand().getType() != Material.LEGACY_BANNER) {
|
||||
if (!me.getItemInHand().getType().toString().contains("BANNER")) {
|
||||
fme.msg(TL.COMMAND_SETBANNER_NOTBANNER);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user