Update to 1.8.7

This commit is contained in:
Daniel Saukel 2015-07-14 18:27:46 +02:00
parent 4dbf696a4e
commit 09cba5cc32
4 changed files with 22 additions and 16 deletions

View File

@ -1,9 +0,0 @@
name: DungeonsXL
version: 0.8.2
main: com.dre.dungeonsxl.P
authors: [Frank Baumann]
softdepend: [Vault]
commands:
dungeonsxl:
description: Reference command for DungeonsXL.
aliases: [dxl,dungeon]

View File

@ -11,11 +11,11 @@ import java.util.UUID;
import java.util.concurrent.CopyOnWriteArrayList;
import net.milkbowl.vault.permission.Permission;
import net.minecraft.server.v1_8_R1.EntityPlayer;
import net.minecraft.server.v1_8_R1.MinecraftServer;
import net.minecraft.server.v1_8_R1.PlayerInteractManager;
import com.mojang.authlib.GameProfile;
import net.minecraft.server.v1_8_R3.EntityPlayer;
import net.minecraft.server.v1_8_R3.MinecraftServer;
import net.minecraft.server.v1_8_R3.PlayerInteractManager;
import com.mojang.authlib.GameProfile;
import org.apache.commons.lang.math.NumberUtils;
import org.bukkit.Bukkit;
@ -24,8 +24,8 @@ import org.bukkit.Location;
import org.bukkit.command.CommandSender;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.craftbukkit.v1_8_R1.CraftServer;
import org.bukkit.craftbukkit.v1_8_R1.CraftWorld;
import org.bukkit.craftbukkit.v1_8_R3.CraftServer;
import org.bukkit.craftbukkit.v1_8_R3.CraftWorld;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.Player;
import org.bukkit.event.HandlerList;

View File

@ -1,7 +1,11 @@
package com.dre.dungeonsxl.commands;
import java.util.Set;
import org.bukkit.Material;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import com.dre.dungeonsxl.DPortal;
public class CMDDeletePortal extends DCommand {
@ -17,7 +21,7 @@ public class CMDDeletePortal extends DCommand {
@Override
public void onExecute(String[] args, CommandSender sender) {
Player player = (Player) sender;
DPortal dPortal = DPortal.get(player.getTargetBlock(null, 20).getLocation());
DPortal dPortal = DPortal.get(player.getTargetBlock((Set<Material>) null, 20).getLocation());
if (dPortal != null) {
dPortal.delete();

11
src/plugin.yml Normal file
View File

@ -0,0 +1,11 @@
name: DungeonsXL
main: com.dre.dungeonsxl.P
version: 0.8.3
author: Frank Baumann
authors: [Frank Baumann, Milan Albrecht, Tobias Schmitz, Daniel Saukel]
website: http://www.dre2n.ml
softdepend: [Vault, SpoutcraftPlugin]
commands:
dungeonsxl:
description: Reference command for DungeonsXL.
aliases: [dxl,dungeon]