Make a time-to-time message appear in chat #20

Closed
opened 2021-08-26 01:57:44 +00:00 by Leha2 · 11 comments

Make a time-to-time message appear in chat. It will resend itself every specified amount of time. It could be useful for server rules, information, etc...

Make a time-to-time message appear in chat. It will resend itself every specified amount of time. It could be useful for server rules, information, etc...
Contributor

Would be pretty hard to implement, and frankly no one would use it. IMO Just sending messages via the server's python api would be a much better solution.

Would be pretty hard to implement, and frankly no one would use it. IMO Just sending messages via the server's python api would be a much better solution.
Author

@RaspberryPiNews No. You just need a thread running in the server mod. It is going to be a loop, which is going to wait the time loaded in config, and then send the message in the chat (the message will alsp be specified in server.properties.). Not that hard. I would implement it, if this old thing would decompile faster, and would have some documentation. If you want a high role, the docs are the best part for you. I am sure you will get admin, or core dev faster.

@RaspberryPiNews No. You just need a thread running in the server mod. It is going to be a loop, which is going to wait the time loaded in config, and then send the message in the chat (the message will alsp be specified in server.properties.). Not that hard. I would implement it, if this old thing would decompile faster, and would have some documentation. If you want a high role, the docs are the best part for you. I am sure you will get admin, or core dev faster.
Contributor

The last part of your message made no sense, and also there arn't any C++ compilers that can produce anything useful so I don't think you can decompile MCPI.

Quote from alv about the message looping that sums it up: It wouldn't be that difficult, actually, but it's probably out of MCPI-Reborn's scope

The last part of your message made no sense, and also there arn't any C++ compilers that can produce anything useful so I don't think you can decompile MCPI. Quote from alv about the message looping that sums it up: `It wouldn't be that difficult, actually, but it's probably out of MCPI-Reborn's scope`
Author

@RaspberryPiNews TBR decompiled mcpi.

@RaspberryPiNews TBR decompiled mcpi.
Contributor

TBR only found hex addresses for the functions, he didnt make source code.

TBR only found hex addresses for the functions, he didnt make source code.

@RaspberryPiNews TBR decompiled mcpi.

No, he did not. Decompiling C/C++ is very hard if not impossible. I tried it myself and 90% of the code was just funcXXXXXXX with no strings, comments, and often a lot of __asm__ calls.

> @RaspberryPiNews TBR decompiled mcpi. No, he did not. Decompiling C/C++ is very hard if not impossible. I tried it myself and 90% of the code was just `funcXXXXXXX` with no strings, comments, and often a lot of `__asm__` calls.

@RaspberryPiNews No. You just need a thread running in the server mod. It is going to be a loop, which is going to wait the time loaded in config, and then send the message in the chat (the message will alsp be specified in server.properties.). Not that hard. I would implement it, if this old thing would decompile faster, and would have some documentation. If you want a high role, the docs are the best part for you. I am sure you will get admin, or core dev faster.

I doubt the usefulness for this feature. If you wanted to send messages every n-minutes you can write a python script for that.

> @RaspberryPiNews No. You just need a thread running in the server mod. It is going to be a loop, which is going to wait the time loaded in config, and then send the message in the chat (the message will alsp be specified in server.properties.). Not that hard. I would implement it, if this old thing would decompile faster, and would have some documentation. If you want a high role, the docs are the best part for you. I am sure you will get admin, or core dev faster. I doubt the usefulness for this feature. If you wanted to send messages every n-minutes you can write a python script for that.
Author

Nope. That would be useful, for

  • people who dunno python
  • people who cant run python
  • people who want a quick setup without anything else running (my case btw)
Nope. That would be useful, for * people who dunno python * people who cant run python * people who want a quick setup without anything else running (my case btw)
Contributor

This is out of reborn's scope, how many people do you think would actually find this helpful? Barely anyone runs a server and even less people have a public one that requires rules to be spammed in chat. Just do

minecraft-pi-reborn-server &
python3 rules.py
This is out of reborn's scope, how many people do you think would actually find this helpful? Barely anyone runs a server and even less people have a public one that requires rules to be spammed in chat. Just do ``` minecraft-pi-reborn-server & python3 rules.py ```

Timestamps out-of-the-box for chat would be helpful.

Timestamps out-of-the-box for chat would be helpful.

Pretty much everything is already covered by other messages, closing.

Pretty much everything is already covered by other messages, closing.
Sign in to join this conversation.
No Label
No Milestone
No Assignees
5 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: minecraft-pi-reborn/minecraft-pi-reborn#20
No description provided.