mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-23 23:03:05 +02:00
Merge branch 'master' of https://github.com/essentials/Essentials
This commit is contained in:
@@ -18,7 +18,7 @@ public class Block {
|
|||||||
|
|
||||||
public ItemStack convertToItem()
|
public ItemStack convertToItem()
|
||||||
{
|
{
|
||||||
final ItemStack is = ItemStack.create(this.getType(), 1, this.getDurability());
|
final ItemStack is = ItemStack.create(this.stack.getType(), 1, this.stack.getDurability());
|
||||||
return this.getType().convertToItem(is);
|
return this.stack.getType().convertToItem(is);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,9 +1,9 @@
|
|||||||
package net.ess3.bukkit;
|
package net.ess3.bukkit;
|
||||||
|
|
||||||
import net.ess3.api.server.CommandSender;
|
|
||||||
import net.ess3.api.server.Permission;
|
|
||||||
import lombok.Delegate;
|
import lombok.Delegate;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
import net.ess3.api.server.CommandSender;
|
||||||
|
import net.ess3.api.server.Permission;
|
||||||
|
|
||||||
|
|
||||||
public class BukkitCommandSender implements CommandSender
|
public class BukkitCommandSender implements CommandSender
|
||||||
@@ -29,6 +29,7 @@ public class BukkitCommandSender implements CommandSender
|
|||||||
return commandSender.isOp();
|
return commandSender.isOp();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean hasPermission(Permission permission)
|
public boolean hasPermission(Permission permission)
|
||||||
{
|
{
|
||||||
if (commandSender == null) {
|
if (commandSender == null) {
|
||||||
@@ -37,4 +38,16 @@ public class BukkitCommandSender implements CommandSender
|
|||||||
return commandSender.hasPermission(((BukkitPermission)permission).getBukkitPermission());
|
return commandSender.hasPermission(((BukkitPermission)permission).getBukkitPermission());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void sendMessage(String message)
|
||||||
|
{
|
||||||
|
commandSender.sendMessage(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void sendMessage(String[] string)
|
||||||
|
{
|
||||||
|
commandSender.sendMessage(string);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -18,6 +18,18 @@ public class BukkitMaterial extends Material
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getId()
|
||||||
|
{
|
||||||
|
return this.material.getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getMaxStackSize()
|
||||||
|
{
|
||||||
|
return this.material.getMaxStackSize();
|
||||||
|
}
|
||||||
|
|
||||||
private interface Excludes {
|
private interface Excludes {
|
||||||
short getMaxDurability();
|
short getMaxDurability();
|
||||||
}
|
}
|
||||||
|
@@ -197,4 +197,10 @@ public class TestPlayer implements Player {
|
|||||||
throw new UnsupportedOperationException("Not supported yet.");
|
throw new UnsupportedOperationException("Not supported yet.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isInSurvivalMode()
|
||||||
|
{
|
||||||
|
throw new UnsupportedOperationException("Not supported yet.");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -6,6 +6,7 @@ import java.util.logging.Logger;
|
|||||||
import net.ess3.api.server.Location;
|
import net.ess3.api.server.Location;
|
||||||
import net.ess3.api.server.Player;
|
import net.ess3.api.server.Player;
|
||||||
import net.ess3.api.server.Plugin;
|
import net.ess3.api.server.Plugin;
|
||||||
|
import net.ess3.api.server.Server;
|
||||||
|
|
||||||
public class TestPlugin implements Plugin {
|
public class TestPlugin implements Plugin {
|
||||||
|
|
||||||
@@ -93,4 +94,10 @@ public class TestPlugin implements Plugin {
|
|||||||
throw new UnsupportedOperationException("Not supported yet.");
|
throw new UnsupportedOperationException("Not supported yet.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Server getServer()
|
||||||
|
{
|
||||||
|
throw new UnsupportedOperationException("Not supported yet.");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -86,4 +86,10 @@ public class TestServer implements Server {
|
|||||||
throw new UnsupportedOperationException("Not supported yet.");
|
throw new UnsupportedOperationException("Not supported yet.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Player getPlayer(String name)
|
||||||
|
{
|
||||||
|
throw new UnsupportedOperationException("Not supported yet.");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
2
pom.xml
2
pom.xml
@@ -74,7 +74,7 @@
|
|||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<bukkit.version>1.2.5-R4.1-SNAPSHOT</bukkit.version>
|
<bukkit.version>1.3.1-R0.1-SNAPSHOT</bukkit.version>
|
||||||
<build.number>Unknown</build.number>
|
<build.number>Unknown</build.number>
|
||||||
<org-netbeans-modules-editor-indent.CodeStyle.project.expand-tabs>true</org-netbeans-modules-editor-indent.CodeStyle.project.expand-tabs>
|
<org-netbeans-modules-editor-indent.CodeStyle.project.expand-tabs>true</org-netbeans-modules-editor-indent.CodeStyle.project.expand-tabs>
|
||||||
<org-netbeans-modules-editor-indent.CodeStyle.project.indent-shift-width>2</org-netbeans-modules-editor-indent.CodeStyle.project.indent-shift-width>
|
<org-netbeans-modules-editor-indent.CodeStyle.project.indent-shift-width>2</org-netbeans-modules-editor-indent.CodeStyle.project.indent-shift-width>
|
||||||
|
Reference in New Issue
Block a user