Jump to content

Recommended Posts

Posted (edited)

Bots somehow miraculously learned how to emulate the list of mods, now they can log in to the server normally Question: How do I cancel the player's login (I will instantly and automatically find out if the player is a bot if he tries to log in before loading the player himself in the world, but after he passes the nickname and ip address) I can't think of anything worse than PlayerServerEntity.connect.disconnect, but unfortunately the player manages to log on to the server and get the world data before it kicks. ((This is all I do in PlayerLoggedInEvent) Is there a way to kick the player after he passes the nickname and IP address? (Maybe there is an analogue of PlayerPreLogginEvent in spigot)

Edited by ZSPYDO
  • ZSPYDO changed the title to Anti-entry mod (1.16.5)
Posted (edited)
1 hour ago, diesieben07 said:

Just ban them via the normal Minecraft means?

Yes, I want to be banned, but I know the bot or the player only when joining, I can't find out in advance (The player still manages to log in and it spams to the server Player joined to the game And then Player left the game

Maybe you can somehow remove these messages at the server core level? (Preferably not working with core mod)

Well, for example, how do I create my own ban system. ((Without changing the core mod at the same time, I don't want to touch the core mod in general)

Edited by ZSPYDO
Posted
1 minute ago, diesieben07 said:

Then I am honestly not sure what you want to achieve.

I want to cancel the player's login to the server (Before the player logs in to it)

 

Posted (edited)
7 minutes ago, diesieben07 said:

Yes... but why? There is no Forge API to do this. Use the vanilla ban lists.

Vanilla bans are already occupied for another I need another system of bans (Maybe I can somehow change the forge code?)

That is, I need a system that will work like vanilla bans, but just check an additional list of bans

Edited by ZSPYDO
Posted (edited)
5 minutes ago, diesieben07 said:

What do you mean by "occupied for another"? What on earth are you talking about?

The vanilla ban system is used to ban violators, if I also use it to ban bots, then later I will not be able to distinguish players who were banned because of the bot from players who violated the rules of the server. And in the future, players who were banned for violating the rules of the server will be able to say that they were banned because of the bot...

Also, I will not be able to erase the database of violators without erasing the database of bots, and vice versa...

Edited by ZSPYDO
Posted (edited)
6 minutes ago, diesieben07 said:

Then keep track in a separate system.

This is a very good idea, but then other problems appear, so for example, when a player logs in, my PlayerLoggedInEvent will not work, and I will not be able to compare the current time with the past and check whether it's time to let the player on the server.

Maybe you know how to make a semblance of the ip whitelist plugin on forge (Without third-party applications like iptables)

Edited by ZSPYDO
Posted (edited)
5 minutes ago, diesieben07 said:

There have been several attempts at bringing one to Forge through pull requests, but the PR authors either always lost interest or did not comply with the requirements for getting it implemented.

When I was on 1 12 2, I found the implementation of the ban system in forge.source in java format, Maybe there is a way on 1 16 5 to find this system and add the ip whitelist system there... In this matter, I was able to achieve success on 1 12 2, but only within eclipse, when trying to go outside of eclipse with the mod, everything stopped working...

That is, when starting the server via runserver, everything worked, and when compiling the mod via gradle build, what I changed in forge.source in java format lost its force

Edited by ZSPYDO
Posted (edited)
2 minutes ago, diesieben07 said:

There has never been an API for it in Forge due to concerns of abuse.

Now the lack of such functionality is very hindering, it turns out that plug-ins become almost irreplaceable...

The server is now literally defenseless against bot attacks, since even if you ban the bot at the entrance, it will still put a load on the server (Downloading the world for a few seconds)

Edited by ZSPYDO
Posted

How many difficulties arise because of such a seemingly simple thing... I am sure that when bots bypassing the protection of the list of mods become widespread, it will still be added to forge, otherwise all servers hosted on hosting sites will simply become defenseless.

Posted (edited)
19 minutes ago, diesieben07 said:

I still fail to see the issue that cannot be solved by the normal vanilla ban- and whitelist.

Imagine the following system: BungeeCord When connected from server B to server F Passes data (Nick and Ip) to the MYSQL database But server F has a whitelist enabled, Also server F cannot update it 1 time in player login, because PlayerLoggenInEvent will not work because of the included white list. As a result, the server F checks every second for new records in the MySql database, then adds the player to the white list, and then deletes or transfers the player record from MySql to any other place in MySql For example, in MySql from table A to table B Now we have the following situation, MySql And server F has very good optimization, but this is not enough, since the player can be kicked, because server F checks the MySql database once every 1 second, and server B transfers data to the MySql database only after it starts switching the player. To sum up: The player will be kicked at least 1 time for every first connection to another Forge server that uses bungeecord

P.S The ban system is not even considered in the context of the whitelist ip system for obvious reasons (How lucky that I once figured out how to add a database to Forge MySql ...)

Edited by ZSPYDO

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Forge only supports Java Edition, you'll need to ask elsewhere for Pocket Edition support. Also, don't post in unrelated topics. I've split your post into its own topic.
    • How do I download mods for minecraft pe
    • I've tried multiple ways to get the chunk coordinates and none of them have worked, so I'm guessing it may be getChunk().  Is there another way to forcibly load a chunk on that same tick? If all else fails I guess I can just delay my action by a tick, but that's a pain in the butt and makes it more complex to provide appropriate feedback... Also welcome, Zander.  If you're searching for a similar solution, I hope this (eventually) helps you too 😅
    • My guess would be that you are not getting the chunk coordinates right, or getChunk dosnt work.
    • Hello, Recently I have been hosting an RLcraft server on Minecraft Forge Version 1.12.2 - 14.23.5.2860 I originally had lag issues and I chalked it up to playing on less than perfect hardware so I moved the server to better hardware(i9-9900k with 64GB of RAM for 1 player.) After lots of troubleshooting I discovered a couple of things. World saving was causing the MSPT to spike to over 2000Miliseconds and was happening every minute. This kind of makes sense as the world was pre-generated and is over 100GB. I learned that I could turn off world saving and just schedule that and that resolved that issue. After that issue was resolved I discovered another issue. It appears that when exploring chunks, any chunks explored stay loaded. They persist. I was originally thinking that this had to be a mod issue, but it didn't seem like anyone was talking about it. This isn't really a problem on packs with few worldgen mods or just few mods in general, but on beefier packs it becomes a problem. I went through forge changelogs and found this line. Build: 1.12.2-14.23.5.2841 - Thu Aug 29 01:58:50 GMT 2019 bs2609: Improve performance of persistent chunk checks (#5706) Is this a related item to what I am dealing with or just something else?   I went ahead and created a new dedicated server with Just Forge 14.23.5.2860, spark reforged, and it's core mods. I was able to replicate the issue and log it with spark. Hopefully you're able to see this spark profile. It basically shows that as I explored the chunk loading persisted(2000 chunks loaded over 10 minutes with one player)The view distance is set to 10 so that should be 200 chunks per player. If I don't move the loaded chunks are 200. I was however able to fix the persistent chunk issue if I save the world more frequently. My question is, is this intended function of the game or is this a bug? Everywhere I read seems to indicate Minecraft servers save every 5 minutes and not every minute. Can chunks not unload if the world does not autosave. Additionally. Autosave specifically appears to fix this issue. Manually running save-all does not resolve the issue.   I realize this is kind of a log one, sorry. Please let me know if you require further information. Thanks in advance for your time. https://spark.lucko.me/NvlMtC39Yt https://imgur.com/a/K0oyukx https://pastebin.com/z0qGu1Vh  
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.