xmamo / VanillaVotifier

Votifier plugin, but for Minecraft vanilla!
https://mamo.dev/vanillavotifier
Other
17 stars 8 forks source link

special feature request please :) #13

Closed advocaite closed 8 years ago

advocaite commented 8 years ago

hey mamo long time since i spoken with you..any chance you could make it so you can choose multiple servers to rcon to. for instance

I have strictly vanilla main and strictly vanilla skyblock when a user votes on site it would be cool if i could have the rcon command sent to both servers this way i can reward people for voting on all servers even if they only play one server ;)

just a feature i would like to know if you could add if you need a fiver for it, ill be glad to donate to you for it. let me know thanks man.

xmamo commented 8 years ago

Hello advo! That's actually a feature I actually wanted to add quite some time ago, but thought it was useless. But since you are now requesting this, I could try it! I'll start to work today!

advocaite commented 8 years ago

you are awsome man

xmamo commented 8 years ago

Hey advo, sorry if it took so long, but due to university and stuff I only took a look at it today. Anyways, in the newest version you can already do it! Here's an example, where the fisrt Minecraft server is at localhost and the second one is at 81.3.21.12:

{
    "config-version": 3,
    "log-file": "votifier.log",
    "ip": "127.0.0.1",
    "port": 8192,
    "key-pair-files": {
        "public": "public.pem",
        "private": "private.pem"
    },
    "rcon-list": [
        {
            "ip": "127.0.0.1",
            "port": 25575,
            "password": "password1",
            "commands": [
                "tellraw @a {\"text\":\"${user-name} has just voted for this server on ${service-name}. Thanks!\",\"color\":\"yellow\"}",
                "scoreboard players set ${user-name} voted 1"
            ]
        },
        {
            "ip": "81.3.21.12",
            "port": 25575,
            "password": "password2",
            "commands": [
                "tellraw @a {\"text\":\"${user-name} has just voted for this server on ${service-name}. Thanks!\",\"color\":\"yellow\"}",
                "scoreboard players set ${user-name} voted 1"
            ]
        }
    ]
}