mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-03 23:07:40 +01:00
Finalising merge with head
By: stevenh <steven.hartland@multiplay.co.uk>
This commit is contained in:
parent
c736e00b8c
commit
e56db60b83
@ -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();
|
||||||
|
|
||||||
|
}
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
12
paper-api/src/main/java/org/bukkit/plugin/IExecutor.java
Normal file
12
paper-api/src/main/java/org/bukkit/plugin/IExecutor.java
Normal file
@ -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 );
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user