Comments (9)
I think it's entirely possible that the overloads on Player.sendMessage()
may go since they're redundant. Message
already implements Iterable<Message>
anyway and the String
overload doesn't really make sense anyway since it just forces the server to wrap the String
in a Message
object internally. If anything, Player.sendMessage
should be unified with Game.broadcastMessage()
from spongeapi.
@Mumfrey so things like player.sendMessage("Hi! Welcome to our server");
shouldn't work? That sounds like its introducing another layer or
complexity where it really doesn't need to be to me...
On Mon, Dec 15, 2014 at 11:40 AM, Mumfrey [email protected] wrote:
I think it's entirely possible that the overloads on Player.sendMessage()
may go since they're redundant. Message already implements
Iterable anyway and the String overload doesn't really make
sense anyway since it just forces the server to wrap the String in a
Message object internally. If anything, Player.sendMessage should be
unified with Game.broadcastMessage()—
Reply to this email directly or view it on GitHub
#287 (comment)
.
from spongeapi.
@nightpool that would be player.sendMessage(Massages.of("Hi! Welcome to our server"));
without the overloads
from spongeapi.
@Soren025 Right, but that's another API to learn and another Class' javadoc
to look at. Seems like a pointless change that makes things harder on API
consumers to me. What's the problem with maintaining a sendMessage
overload? (and making a comparable broadcastMessage one of course)
On Mon, Dec 15, 2014 at 9:00 PM, Soren025 [email protected] wrote:
@nightpool https://github.com/nightpool that would be player.sendMessage(Massages.of("Hi!
Welcome to our server")); without the overloads—
Reply to this email directly or view it on GitHub
#287 (comment)
.
from spongeapi.
...because Minecraft's chat system doesn't work like this anymore. The API should serve to teach the plugin developer that yes there is formatting, styles, etc. Instead of masking it behind the scenes by having the server make the message object.
from spongeapi.
@Zidane but that's what the overload is there for?
Okay anyway it doesn't matter THAT much I'm not looking to start a religious war over this.
from spongeapi.
I think the best is to have both a sendMessage for String, and Message
from spongeapi.
I agree with Zidane and think there should only be a sendMessage for Messages. And people can make their own helper methods for Strings, if they need to.
from spongeapi.
Closing in favor of #425
from spongeapi.
Related Issues (20)
- RFC: World Transactional API
- Expose FastUtil in API HOT 2
- Can't get Biome Volume Factory with factory provider HOT 1
- Server-scoped PlayerChatRouter
- Ability to Hide Entities - "Sending Single Client Data" HOT 1
- Add method to retrieve level name from world properties
- Add Java Modules to Sponge API
- Amendments to API org.spongepowered.api.service.permission.SubjectData
- Enhanced Loot Table support HOT 1
- Typo
- automatic parameterized registration of plugin derived permission sets HOT 1
- Add a DataFormats.SNBT
- DataTranslator registry HOT 1
- Unregister an existing command registration
- Compile API 9 in Java 8 HOT 1
- Review content of util package HOT 1
- Make ServersideConnectionEvent.Handshake a Cancellable MessageEvent, like Auth
- Inventory from BlockSnapshot
- Return type of Container#type()
- Ability to get active bossbars on player
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spongeapi.