Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class CommandSignsPlayerProxy implements Player {
- private Player proxy;
- private boolean silent;
- public CommandSignsPlayerProxy(Player targetPlayer) {
- this.proxy = targetPlayer;
- }
- public boolean isSilent() {
- return silent;
- }
- public void setSilent(boolean silent) {
- this.silent = silent;
- }
- @Override
- public void abandonConversation(Conversation conversation, ConversationAbandonedEvent details) {
- proxy.abandonConversation(conversation, details);
- }
- // This function is basically the only one that NEEDS overriding
- @Override
- public void sendMessage(String message) {
- if (!silent)
- proxy.sendMessage(message);
- }
- @Override
- public void setFlySpeed(float arg0) throws IllegalArgumentException {
- proxy.setFlySpeed(arg0);
- }
- }
Add Comment
Please, Sign In to add comment