diff options
author | stevenh <steven.hartland@multiplay.co.uk> | 2011-01-29 17:28:31 +0000 |
---|---|---|
committer | stevenh <steven.hartland@multiplay.co.uk> | 2011-01-29 17:28:31 +0000 |
commit | a984e73ac1daeedd9fc200d181dc1904fd12d96f (patch) | |
tree | a66ce8c7a1332e68f8463aca09afb560a7b532fa /src/main | |
parent | 39c4a5a2e9298ffd8bad258ecf7f8ae9b6bde808 (diff) | |
download | bukkit-a984e73ac1daeedd9fc200d181dc1904fd12d96f.tar bukkit-a984e73ac1daeedd9fc200d181dc1904fd12d96f.tar.gz bukkit-a984e73ac1daeedd9fc200d181dc1904fd12d96f.tar.lz bukkit-a984e73ac1daeedd9fc200d181dc1904fd12d96f.tar.xz bukkit-a984e73ac1daeedd9fc200d181dc1904fd12d96f.zip |
Finalising merge with head
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/bukkit/command/CommandSender.java | 19 | ||||
-rw-r--r-- | src/main/java/org/bukkit/event/server/ServerCommandEvent.java | 13 | ||||
-rw-r--r-- | src/main/java/org/bukkit/plugin/IExecutor.java | 12 |
3 files changed, 44 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/command/CommandSender.java b/src/main/java/org/bukkit/command/CommandSender.java new file mode 100644 index 00000000..13ed3548 --- /dev/null +++ b/src/main/java/org/bukkit/command/CommandSender.java @@ -0,0 +1,19 @@ +package org.bukkit.command; + + +public interface CommandSender { + /** + * Sends this sender a message + * + * @param message Message to be displayed + */ + public void sendMessage(String message); + + /** + * Checks if this player is currently op + * + * @return true if they are + */ + public boolean isOp(); + +}
\ No newline at end of file diff --git a/src/main/java/org/bukkit/event/server/ServerCommandEvent.java b/src/main/java/org/bukkit/event/server/ServerCommandEvent.java new file mode 100644 index 00000000..5c1020fe --- /dev/null +++ b/src/main/java/org/bukkit/event/server/ServerCommandEvent.java @@ -0,0 +1,13 @@ + +package org.bukkit.event.server; + +import org.bukkit.event.Event; + +/** + * Server Command events + */ +public class ServerCommandEvent extends Event { + public ServerCommandEvent(final Type type) { + super(type); + } +}
\ No newline at end of file diff --git a/src/main/java/org/bukkit/plugin/IExecutor.java b/src/main/java/org/bukkit/plugin/IExecutor.java new file mode 100644 index 00000000..e16c3fa7 --- /dev/null +++ b/src/main/java/org/bukkit/plugin/IExecutor.java @@ -0,0 +1,12 @@ + +package org.bukkit.plugin; + +import org.bukkit.event.Event; +import org.bukkit.event.Listener; + +/** + * Interface which defines the class for event call backs to plugins + */ +public interface IExecutor { + public void execute( Listener listener, Event event ); +}
\ No newline at end of file |