-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
msm <server-name> connected don't work! #159
Comments
Hi, |
minecraft@sebastian: MSM version was 0.8.16 beta and i'm using craftbukkit/1.5.2 |
And i also saw now that if i write: minecraft@sebastian: I displayed this on msm rpg-craft console: There are 1 out of maximum 20 players online. Every time i write msm rpg-craft connected it display on the console |
attach your server log, please (stick it in pastebin, or use gist) - it's likely that msm isn't parsing it properly, but I don't use craftbukkit, so it's harder for me to see. What you're pasting is what it's matching on, so something's strange - maybe a look at the whole server log will help. |
I use ftb direwolf20, and vanilla mc. I'm working on a patch to add ftb support for the various servers. |
For now you could use The cause of this issue is different Minecraft server versions returning the list of players from the Taking one step back, I'm thinking MSM should stop trying to stand between you and your Minecraft server's commands in general by giving you raw access only; looking something like |
It's nice to have a standard way to do this that wraps up the various idiosyncrasies of the server jars being used to present one standard way to interact with the minecraft server. So, I recommend continuing down the road you're heading, and maybe the fix here is to update the docs/interface to make it clearer that "cmd/cmdlog" is the way to interact with the server if the various wrapper calls aren't working. |
Sorry to revive this but I'm trying to find a work around. Any help would be appreciated. If using the Thanks. |
Proposed SolutionMinecraft changed its log file location and format in 1.7.2 as follows:
my solution breaks backwards comparability however it could be modified easily to be backwards compatible.
local regex="${LOG_REGEX} ($3)" with: local regex="${LOG_REGEX}: ($3)" note the semi colon.
while read -t $4 line; do with the following: [[ $line =~ ^\[(.*)\][[:space:]](.*) ]]
line="`date +%Y-%m-%d` ${BASH_REMATCH[1]} ${BASH_REMATCH[2]}" This brings the log file in line with the expected format (needed because UNIX time is used).
console_command CONNECTED "list" \ to the following: "There are ([1-9][0-9]*)/([0-9]+) players online:$" \ notes ln -s ./logs/latest.log ./server.log I'm not sure of the best method to handle this with the MSM script set. |
I am having this issue on Minecraft 1.8.8 MSM version 0.9.2. Is the only fix to follow the above? |
Hello msashlee, are you referring to the log issue noted above, or the OP about the connected command? If about the log location, there are some current commits being pushed which solve this issue. |
Paper or Spigot solutionIf you are using Paper 1.16.x or higher, you can fix this by adding the following Versioning directories and files. mkdir /opt/msm/versioning/paper
cd /opt/msm/versioning/paper
touch 1.16.0.sh Now use vim to edit the 1.16.0.sh file as follows: # vim 1.16.0.sh
# MSM version file for Paper 1.16.0 and above
extends "minecraft/1.7.0"
console_command CONNECTED "list" \
".+:(.+)?$" \
"$" Modify the msm-version of the server.properties file under the server working directory to specify the version to use. # vim /opt/msm/servers/<server-name>/server.properties
msm-version=paper/1.16.0 This is the end! Now # msm <server-name> connected
There are 1 of a max of 20 players online: abcd1234 |
minecraft@sebastian:
$ msm rpg-craft connected$No players are connected.
minecraft@sebastian:
I don't understand this i am logged in to minecraft at this server but when i write this command it does not show anyone. I have been reading in the forums and some others got the same problem i saw the #131 issue and i fixed it but it still don't work.
Please help i really need it.
The text was updated successfully, but these errors were encountered: