Code Monkey home page Code Monkey logo

protonexamples's Introduction

Hi there ๐Ÿ‘‹

  • ๐Ÿ”ญ Iโ€™m currently working on Proton
  • ๐ŸŒฑ Iโ€™m currently learning Machine Learning

mcgrizzz's github stats

protonexamples's People

Contributors

mcgrizzz avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

protonexamples's Issues

A few questions

So I have been looking into testing this but i need some info;

What is the purpose of using (this, this) and could it just be done as (this)?

What do the namespace & subject mean and what is the intended usecase for both?

@MessageHandler(namespace = "networkchat", subject="chatMessage")
public void onChatReceived(PlayerMessage message){
getServer().broadcastMessage(String.format("<%s> %s", message.getPlayer(), message.getMessage()));
}

Could I use this to have bungee and spigot communicate via this scenario:

  • spigot players message gets sent to bungee (to check for cancelling)
  • bungee extracts info and parses data

^ if so, how would i setup something like this? would it be like:

  • manager on spigot and bungee
  • getSyncManager.broadcast() ? <- no sure if there is another one
    then this in the bungee plugin (if so, would i need a PlayerMessage object in the bungee plugin aswell and would it need the same args or can it be different?):
@MessageHandler(namespace = "networkchat", subject="chatMessage")
public void onChatReceived(PlayerMessage message){
    getServer().broadcastMessage(String.format("<%s> %s", message.getPlayer(), message.getMessage()));
}

By different PlayerMessage args I mean could I use this:

public PlayerMessage (Player player, String message) {
    this.player = player.getDisplayName();
    this.uuid = player.getUniqueId().toString();
    this.message = message;
}

Thanks in advance :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.