-31
@@ -1,31 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<classpath>
|
|
||||||
<classpathentry kind="src" output="target/classes" path="src/main/java">
|
|
||||||
<attributes>
|
|
||||||
<attribute name="optional" value="true"/>
|
|
||||||
<attribute name="maven.pomderived" value="true"/>
|
|
||||||
</attributes>
|
|
||||||
</classpathentry>
|
|
||||||
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
|
|
||||||
<attributes>
|
|
||||||
<attribute name="maven.pomderived" value="true"/>
|
|
||||||
</attributes>
|
|
||||||
</classpathentry>
|
|
||||||
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
|
|
||||||
<attributes>
|
|
||||||
<attribute name="optional" value="true"/>
|
|
||||||
<attribute name="maven.pomderived" value="true"/>
|
|
||||||
</attributes>
|
|
||||||
</classpathentry>
|
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6">
|
|
||||||
<attributes>
|
|
||||||
<attribute name="maven.pomderived" value="true"/>
|
|
||||||
</attributes>
|
|
||||||
</classpathentry>
|
|
||||||
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
|
|
||||||
<attributes>
|
|
||||||
<attribute name="maven.pomderived" value="true"/>
|
|
||||||
</attributes>
|
|
||||||
</classpathentry>
|
|
||||||
<classpathentry kind="output" path="target/classes"/>
|
|
||||||
</classpath>
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<projectDescription>
|
|
||||||
<name>PlayerVaults</name>
|
|
||||||
<comment></comment>
|
|
||||||
<projects>
|
|
||||||
</projects>
|
|
||||||
<buildSpec>
|
|
||||||
<buildCommand>
|
|
||||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
|
||||||
<arguments>
|
|
||||||
</arguments>
|
|
||||||
</buildCommand>
|
|
||||||
<buildCommand>
|
|
||||||
<name>org.eclipse.m2e.core.maven2Builder</name>
|
|
||||||
<arguments>
|
|
||||||
</arguments>
|
|
||||||
</buildCommand>
|
|
||||||
</buildSpec>
|
|
||||||
<natures>
|
|
||||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
|
||||||
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
|
||||||
</natures>
|
|
||||||
</projectDescription>
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
eclipse.preferences.version=1
|
|
||||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
|
|
||||||
org.eclipse.jdt.core.compiler.compliance=1.6
|
|
||||||
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
|
|
||||||
org.eclipse.jdt.core.compiler.source=1.6
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
activeProfiles=
|
|
||||||
eclipse.preferences.version=1
|
|
||||||
resolveWorkspaceProjects=true
|
|
||||||
version=1
|
|
||||||
@@ -13,12 +13,10 @@ import org.bukkit.event.Listener;
|
|||||||
import org.bukkit.event.block.Action;
|
import org.bukkit.event.block.Action;
|
||||||
import org.bukkit.event.entity.PlayerDeathEvent;
|
import org.bukkit.event.entity.PlayerDeathEvent;
|
||||||
import org.bukkit.event.inventory.InventoryCloseEvent;
|
import org.bukkit.event.inventory.InventoryCloseEvent;
|
||||||
import org.bukkit.event.player.PlayerChangedWorldEvent;
|
|
||||||
import org.bukkit.event.player.PlayerInteractEntityEvent;
|
import org.bukkit.event.player.PlayerInteractEntityEvent;
|
||||||
import org.bukkit.event.player.PlayerInteractEvent;
|
import org.bukkit.event.player.PlayerInteractEvent;
|
||||||
import org.bukkit.event.player.PlayerJoinEvent;
|
import org.bukkit.event.player.PlayerJoinEvent;
|
||||||
import org.bukkit.event.player.PlayerQuitEvent;
|
import org.bukkit.event.player.PlayerQuitEvent;
|
||||||
import org.bukkit.event.player.PlayerTeleportEvent;
|
|
||||||
import org.bukkit.inventory.Inventory;
|
import org.bukkit.inventory.Inventory;
|
||||||
|
|
||||||
import com.drtshock.playervaults.commands.Commands;
|
import com.drtshock.playervaults.commands.Commands;
|
||||||
@@ -88,16 +86,6 @@ public class Listeners implements Listener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
|
||||||
public void onWorld(PlayerChangedWorldEvent event) {
|
|
||||||
saveVault(event.getPlayer());
|
|
||||||
}
|
|
||||||
|
|
||||||
@EventHandler
|
|
||||||
public void onTeleport(PlayerTeleportEvent event) {
|
|
||||||
saveVault(event.getPlayer());
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a player is trying to do something while
|
* Check if a player is trying to do something while
|
||||||
* in a vault.
|
* in a vault.
|
||||||
@@ -114,7 +102,7 @@ public class Listeners implements Listener {
|
|||||||
* Different inventories that
|
* Different inventories that
|
||||||
* we don't want the player to open.
|
* we don't want the player to open.
|
||||||
*/
|
*/
|
||||||
if(block.getType() == Material.CHEST
|
if(block.getType() == Material.CHEST
|
||||||
|| block.getType() == Material.ENDER_CHEST
|
|| block.getType() == Material.ENDER_CHEST
|
||||||
|| block.getType() == Material.FURNACE
|
|| block.getType() == Material.FURNACE
|
||||||
|| block.getType() == Material.BURNING_FURNACE
|
|| block.getType() == Material.BURNING_FURNACE
|
||||||
@@ -133,12 +121,7 @@ public class Listeners implements Listener {
|
|||||||
public void onInteractEntity(PlayerInteractEntityEvent event) {
|
public void onInteractEntity(PlayerInteractEntityEvent event) {
|
||||||
Player player = event.getPlayer();
|
Player player = event.getPlayer();
|
||||||
EntityType type = event.getRightClicked().getType();
|
EntityType type = event.getRightClicked().getType();
|
||||||
if((type == EntityType.VILLAGER
|
if((type == EntityType.VILLAGER||type==EntityType.MINECART) && Commands.inVault.containsKey(player.getName())) {
|
||||||
|| type == EntityType.MINECART
|
|
||||||
|| type == EntityType.MINECART_CHEST
|
|
||||||
|| type == EntityType.MINECART_FURNACE
|
|
||||||
|| type == EntityType.MINECART_HOPPER)
|
|
||||||
&& Commands.inVault.containsKey(player.getName())) {
|
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,26 +0,0 @@
|
|||||||
# PlayerVaults by drsthock and gomeow!
|
|
||||||
# http://dev.bukkit.org/server-mods/playervaults
|
|
||||||
# Made with love :3
|
|
||||||
|
|
||||||
# Whether or not you want to check for updates.
|
|
||||||
# Will not download an update, that is your job :)
|
|
||||||
check-update: true
|
|
||||||
|
|
||||||
# Settings here are for economy integration. playervaults.free bypasses it.
|
|
||||||
economy:
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
# Cost to create a vault. You can give players playervaults.free to bypass this.
|
|
||||||
cost-to-create: 100
|
|
||||||
cost-to-open: 10
|
|
||||||
refund-on-delete: 50
|
|
||||||
|
|
||||||
# Configuration for dropping inventories on death.
|
|
||||||
# Bypass with playervaults.ignore.drop
|
|
||||||
drop-on-death:
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
# Max amount of inventories you want to be dropped.
|
|
||||||
# Set to 99 (or highest amount you give people) if you want all inventories to be dropped.
|
|
||||||
# WARNING: This can cause a lot of items to be dropped on the ground. Use caution :3
|
|
||||||
inventories: 1
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
# Use & for color codes.
|
|
||||||
# %p is where the player name will get inserted.
|
|
||||||
# %v is where the vault number will get inserted.
|
|
||||||
# %price is the price.
|
|
||||||
# Made with love :)
|
|
||||||
title-name: "&4[&fPlayerVaults&4]:"
|
|
||||||
open-vault: "&fOpening vault &a%v"
|
|
||||||
open-other-vault: "&fOpening vault &a%v &fof &a%p"
|
|
||||||
delete-vault: "&fDeleted vault &a%v"
|
|
||||||
delete-other-vault: "&fDeleted vault &a%v &fof &a%p"
|
|
||||||
player-only: "Sorry but that can only be run by a player!"
|
|
||||||
must-be-number: "&cYou need to specify a number between 1-99"
|
|
||||||
invalid-args: "&cInvalid args!"
|
|
||||||
delete-vault-error: "&cError deleting vault :("
|
|
||||||
no-permissions: "&cYou don't have permission for that!"
|
|
||||||
insufficient-funds: "&cYou don't have enough money for that!"
|
|
||||||
refund-amount: "&fYou were refunded &a%price &ffor deleting that vault."
|
|
||||||
cost-to-create: "&fYou were charged &c%price &ffor creating that vault."
|
|
||||||
cost-to-open: "&fYou were charged &c%price &ffor opening that vault."
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
name: PlayerVaults
|
|
||||||
main: com.drtshock.playervaults.Main
|
|
||||||
authors: [drtshock, gomeow, chester]
|
|
||||||
version: 2.1.1
|
|
||||||
website: http://dev.bukkit.org/server-mods/PlayerVaults
|
|
||||||
softdepend: [Vault]
|
|
||||||
commands:
|
|
||||||
pv:
|
|
||||||
description: Open a vault with /vault <number>
|
|
||||||
aliases: [vault, playervault, playervaults]
|
|
||||||
pvdel:
|
|
||||||
description: Delete a vault.
|
|
||||||
Reference in New Issue
Block a user