1.13
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<groupId>com.drtshock</groupId>
|
<groupId>com.drtshock</groupId>
|
||||||
<artifactId>PlayerVaultsX</artifactId>
|
<artifactId>PlayerVaultsX</artifactId>
|
||||||
<version>4.0.6-SNAPSHOT</version>
|
<version>4.0.7</version>
|
||||||
<name>PlayerVaultsX</name>
|
<name>PlayerVaultsX</name>
|
||||||
<url>https://www.spigotmc.org/resources/51204/</url>
|
<url>https://www.spigotmc.org/resources/51204/</url>
|
||||||
|
|
||||||
@@ -53,7 +53,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.spigotmc</groupId>
|
<groupId>org.spigotmc</groupId>
|
||||||
<artifactId>spigot-api</artifactId>
|
<artifactId>spigot-api</artifactId>
|
||||||
<version>1.12.2-R0.1-SNAPSHOT</version>
|
<version>1.13-R0.1-SNAPSHOT</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ public class SignListener implements Listener {
|
|||||||
if (PlayerVaults.getInstance().getInVault().containsKey(player.getUniqueId().toString())) {
|
if (PlayerVaults.getInstance().getInVault().containsKey(player.getUniqueId().toString())) {
|
||||||
Block block = event.getClickedBlock();
|
Block block = event.getClickedBlock();
|
||||||
// Different inventories that we don't want the player to open.
|
// Different inventories that we don't want the player to open.
|
||||||
if (block.getType() == Material.CHEST || block.getType() == Material.TRAPPED_CHEST || block.getType() == Material.ENDER_CHEST || block.getType() == Material.FURNACE || block.getType() == Material.BURNING_FURNACE || block.getType() == Material.BREWING_STAND || block.getType() == Material.ENCHANTMENT_TABLE || block.getType() == Material.BEACON) {
|
if (block.getType() == Material.CHEST || block.getType() == Material.TRAPPED_CHEST || block.getType() == Material.ENDER_CHEST || block.getType() == Material.FURNACE || block.getType() == Material.BREWING_STAND || block.getType() == Material.ENCHANTING_TABLE || block.getType() == Material.BEACON) {
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -49,7 +49,7 @@ public class SignListener implements Listener {
|
|||||||
PlayerVaults.getInstance().getSetSign().remove(player.getName());
|
PlayerVaults.getInstance().getSetSign().remove(player.getName());
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
if (event.getAction() == Action.RIGHT_CLICK_BLOCK) {
|
if (event.getAction() == Action.RIGHT_CLICK_BLOCK) {
|
||||||
if (event.getClickedBlock().getType() == Material.WALL_SIGN || event.getClickedBlock().getType() == Material.SIGN_POST) {
|
if (event.getClickedBlock().getType() == Material.WALL_SIGN || event.getClickedBlock().getType() == Material.SIGN) {
|
||||||
Sign s = (Sign) event.getClickedBlock().getState();
|
Sign s = (Sign) event.getClickedBlock().getState();
|
||||||
Location l = s.getLocation();
|
Location l = s.getLocation();
|
||||||
String world = l.getWorld().getName();
|
String world = l.getWorld().getName();
|
||||||
@@ -74,7 +74,7 @@ public class SignListener implements Listener {
|
|||||||
}
|
}
|
||||||
Block b = event.getClickedBlock();
|
Block b = event.getClickedBlock();
|
||||||
if (event.getAction() == Action.RIGHT_CLICK_BLOCK) {
|
if (event.getAction() == Action.RIGHT_CLICK_BLOCK) {
|
||||||
if (b.getType() == Material.WALL_SIGN || b.getType() == Material.SIGN_POST) {
|
if (b.getType() == Material.WALL_SIGN || b.getType() == Material.SIGN) {
|
||||||
Location l = b.getLocation();
|
Location l = b.getLocation();
|
||||||
String world = l.getWorld().getName();
|
String world = l.getWorld().getName();
|
||||||
int x = l.getBlockX();
|
int x = l.getBlockX();
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ authors: [drtshock, kashike]
|
|||||||
version: ${project.version}
|
version: ${project.version}
|
||||||
website: https://www.spigotmc.org/resources/51204/
|
website: https://www.spigotmc.org/resources/51204/
|
||||||
softdepend: [Vault]
|
softdepend: [Vault]
|
||||||
|
api-version: 1.13
|
||||||
|
|
||||||
commands:
|
commands:
|
||||||
pv:
|
pv:
|
||||||
|
|||||||
Reference in New Issue
Block a user