Cuberite Forum
NoPerworldChat - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Releases (https://forum.cuberite.org/forum-2.html)
+--- Thread: NoPerworldChat (/thread-806.html)



NoPerworldChat - NiLSPACE - 02-16-2013

NoPerworldChat
Is a simple plugin that shows the chat even if you are in a different world than someone else.


RE: NoPerworldChat - xoft - 02-17-2013

Well, usually for large servers you want the exactly opposite thing - having a chat that is limited only to players that are near to you, otherwise you get too much of it. Maybe you can make a plugin to do that as well? I wouldn't know how to do that easily, though.


RE: NoPerworldChat - NiLSPACE - 02-17-2013

(02-17-2013, 01:31 AM)xoft Wrote: Well, usually for large servers you want the exactly opposite thing

but for small servers this is pretty usefull Smile

(02-17-2013, 01:31 AM)xoft Wrote: I wouldn't know how to do that easily, though.
Basic Cmds V2 (https://forum.cuberite.org/showthread.php?tid=1) already had something where you could use /whisper [msg] to talk to people in a range of 15 blocks and /shout [msg] for people in a radius of 30 blocks


RE: NoPerworldChat - xoft - 02-17-2013

That's right, you could just go through all the world's players, measure the distance to them and send the message specifically to those players, then refuse further processing on the chat message (return true). I was thinking something more systematic, such as MCServer having an API function ForEachPlayerWithinDistance() or such.

Combine all of these together, and you'll have the ultimate chat plugin Smile


RE: NoPerworldChat - NiLSPACE - 02-17-2013

i think if you add ForEachPlayerWithinDistance() il try to make it configurable


RE: NoPerworldChat - xoft - 02-17-2013

You don't need that, just use ForEachPlayer() and check the distance in the callback.


RE: NoPerworldChat - NiLSPACE - 02-17-2013

i tried what i can but i could not figure out how to do it Sad