Examples of PlugInMessage


Examples of kameleon.gui.model.PlugInMessage

   */
  @Override
  public void updateMessage(Message newMessage)
      throws FileReadingException, UnknownKeyException {
    this.message = newMessage ;
    PlugInMessage pMessage = (PlugInMessage) newMessage ;
    this.initIcon(this.icon, pMessage.getState()) ;
    // Update message
    this.reloadLanguage() ;
  }// updateMessage(Message)
View Full Code Here

Examples of kameleon.gui.model.PlugInMessage

  }// updateMessage(Message)
 
  /** {@inheritDoc} */
  @Override
  public void reloadLanguage() throws UnknownKeyException {
    PlugInMessage pMessage = (PlugInMessage) this.message ;
    this.messageLabel.setText(pMessage.getMessage()) ;
  }// reloadLanguage()
View Full Code Here

Examples of net.glowstone.net.message.play.game.PluginMessage

        String channel = ByteBufUtils.readUTF8(buf);

        // todo: maybe store a ByteBuf in the message instead?
        byte[] data = new byte[buf.readableBytes()];
        buf.readBytes(data);
        return new PluginMessage(channel, data);
    }
View Full Code Here

Examples of net.md_5.bungee.protocol.packet.PluginMessage

    };

    @Override
    public void sendData(String channel, byte[] data)
    {
        unsafe().sendPacket( new PluginMessage( channel, data, forgeServer ) );
    }
View Full Code Here

Examples of net.md_5.bungee.protocol.packet.PluginMessage

            if ( user.getPendingConnection().getVersion() < ProtocolConstants.MINECRAFT_SNAPSHOT )
            {
                MinecraftOutput out = new MinecraftOutput();
                out.writeStringUTF8WithoutLengthHeaderBecauseDinnerboneStuffedUpTheMCBrandPacket( ProxyServer.getInstance().getName() + " (" + ProxyServer.getInstance().getVersion() + ")" );
                user.unsafe().sendPacket( new PluginMessage( "MC|Brand", out.toArray(), handshakeHandler.isServerForge() ) );
            } else
            {
                ByteBuf brand = ByteBufAllocator.DEFAULT.heapBuffer();
                DefinedPacket.writeString( bungee.getName() + " (" + bungee.getVersion() + ")", brand );
                user.unsafe().sendPacket( new PluginMessage( "MC|Brand", brand.array().clone(), handshakeHandler.isServerForge() ) );
                brand.release();
            }
        } else
        {
            user.getTabListHandler().onServerChange();
View Full Code Here

Examples of net.md_5.bungee.protocol.packet.PluginMessage

        return Collections.unmodifiableCollection( pluginChannels );
    }

    public PluginMessage registerChannels()
    {
        return new PluginMessage( "REGISTER", Util.format( pluginChannels, "\00" ).getBytes( Charsets.UTF_8 ), false );
    }
View Full Code Here

Examples of net.md_5.bungee.protocol.packet.PluginMessage

            {
                server.sendData( channel, data );
                return true;
            } else if ( queue )
            {
                packetQueue.add( new PluginMessage( channel, data, false ) );
            }
            return false;
        }
    }
View Full Code Here

Examples of net.md_5.bungee.protocol.packet.PluginMessage

    }

    @Override
    public void sendData(String channel, byte[] data)
    {
        unsafe().sendPacket( new PluginMessage( channel, data, forgeClientHandler.isForgeUser() ) );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.