Giter VIP home page Giter VIP logo

Comments (3)

marcbal avatar marcbal commented on June 18, 2024

Probably because the following code is just ignoring the source argument:

@Override
public void sendMessage(final @NotNull ProxiedPlayer viewer, final @NotNull Identity source, final BaseComponent @NotNull [] message, final @NotNull MessageType type) {
final ChatMessageType chat = this.createType(type);
if(chat != null) {
viewer.sendMessage(chat, message);
}
}
}

Bungeecord ProxiedPlayer interface now provides a sendMessage method with UUID parameter:
https://github.com/SpigotMC/BungeeCord/blob/bda160562792a913cba3a65ba4996de60d0d6d68/api/src/main/java/net/md_5/bungee/api/connection/ProxiedPlayer.java#L82-L96

from adventure-platform.

zml2008 avatar zml2008 commented on June 18, 2024

ProxiedPlayer provides a sendMessage with a UUID parameter and one with a ChatMessageType parameter, but not one with both for some reason :(

from adventure-platform.

marcbal avatar marcbal commented on June 18, 2024

Sadly, yes. Looking at the implementation, using the one with UUID parameter imply ChatMessageType.CHAT, so it should be an easy fix with some if-else statement.
Another solution would be to make the sendMessage(ChatMessageType, UUID, BaseComponent) part of the API in bungeecord (it’s only in the implementation class)

from adventure-platform.

Related Issues (20)

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.