Bobcat00 / AltDetector

Detects players' alt accounts
3 stars 3 forks source link

Run command when alt detected #2

Open chelminski opened 7 months ago

chelminski commented 7 months ago

As written in the topic. Allow the command to be executed when the plugin detects multi-accounts. This will allow you to customize additional actions.

The plugin is installed in the lobby and currently the administration does not receive proactive information. I can configure everything perfectly, but I need the plugin to execute the command when it detects a user.

Bobcat00 commented 7 months ago

I'm not sure if this is easy to do, because that part of the code is just getting formatted strings. But what parameters/placeholders would you suggest be available in the command? For example, what would the command you want look like?

chelminski commented 7 months ago

Example commands:

(Executed when multi-player accounts are found)

Many commands can be opened logically using the placeholder: Change-Output Placeholder

For example: If the number of multi-accounts is greater than X run command: ban ip For this you will need placeholders listed in the next chapter.

Discord, Slack, Email notifications, etc.

Commands sent to trigger the creation of flow data to an external portal. For example, posting on the Administration channel that the player has more than 3 accounts. You can use ChangeOutput for this too. For example: Send a notification to the administration via Discord if the player has more than 1 account. For example: Send an email to the player reminding them of the rules that they cannot have more than one account.

Needed placeholders:

To do:

Conclusion

To sum up, we need to add placeholders only. To execute the command when a player joins the server we can use "JoinCommands Plugin" So I'm changing my request a bit. We only need placeholders. The commands will be executed automatically after the player joins the server.

Bobcat00 commented 7 months ago

I'll consider this, but let me say that banning players based on this is a bad idea. Here are a bunch of cases where legitimate players share IP addresses:

Do you really want to ban players just because they have friends or use Starlink?

chelminski commented 7 months ago

Yes. For example, if there are more than 5 accounts from a given IP address, they should be banned. My plan assumes that the administration should receive notifications when someone has 3+ accounts. If someone creates accounts faster than my administration is able to contact the player asking for an explanation - I think such accounts should be banned. I was already using the multi-account verification system, but it stopped working and had no support. I realize that many people can legally have the same IP and that's nothing bad. :)