Jump to content

aznkv

Members
  • Posts

    14
  • Joined

  • Last visited

Posts posted by aznkv

  1. 1 hour ago, diesieben07 said:

    Please elaborate what you are talking about.

    I mean like username policy, like no less than 3 chars and no more than 16 latin only and no special symbols. is there anything like that? or i can connect to the server with 50 chars in my nickname joined by underscore :^)

  2. 1 hour ago, DaemonUmbra said:

    Not sure what you mean by "its purpose is not for that", it's literally the vanilla command for managing the whitelist.

    You can just reflectively invoke the methods you need to use.

    reloading works just fine, and for adding and removing i can extract GameProfiles from PlayersList. Thank you a lot!

  3. 1 hour ago, DaemonUmbra said:

    Not sure what you mean by "its purpose is not for that", it's literally the vanilla command for managing the whitelist.

    You can just reflectively invoke the methods you need to use.

    Im really sorry, i feel really stupid. How do i reflectively invoke the methods? Most of them require CommandSource, to get the server, where can i get it? And if i try to make "my own server" i need CommandSource.. so its some sort of the loop here, plus these "p_201302_1_" and so on things that count as CommandSource make me wonder what and why.

  4. 6 minutes ago, DaemonUmbra said:

    Why is this necessary?

    If i update my whitelist through mod, like parse it out and apply changes (which is silly), im pretty sure minecraft server wont do a thing and only after restart those changes will start to work and restarting the server just for that is kinda strange.

  5. My mod extends the default whitelist behaviour to check if the connecting user is present in sql database, im listening to "PlayerEvent.PlayerLoggedInEvent" to make any nessery checks there, but apperently that event gets fired right after, or at the same time as the message "joined the game" got sent. How can i control those messages? Or is there any other event that i could hook to so none of those chat notifications get sent before any checks made? Thx in advance.

     

  6. 5 minutes ago, diesieben07 said:

    Hm, okay, thanks! I'll try to do something like that

  7. Hi, im creating server side only mod and im looking into how to provide this mod with data that should be supplied by servers admin (supposedly cfg file). A lot of guides suggest to use Configuration class, but is seems it got deleted from forges library, how do i do it then? Should i do it myself and straight up access the file by a relative path or there is something else that i can do? in case you wonder what could "admin" provide, my mod requires access to sql database and i need a correct connection link for it. It might be that someone already had similar question (i cant find anything), if so, pls provide the forum link. Sorry for my bad english and thanks in advance.

     

×
×
  • Create New...

Important Information

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