Checking The Size Of A Players Jar?

Discussion in 'Plugin Development' started by Lemonz1805, Jun 14, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    Lemonz1805

    I have some experience with Java and developing Bukkit plugins and I wanted to know if there is a way to check the size of a players minecraft.jar file and then kick them telling them that they may not join the server with a modified Jar. If there is a way to do this I will try to make a plugin which checks their minecraft.jar to prevent any mods but I might allow some like Rei's Minimap or Optifine. If there is a way to do this how would I go about doing it, I have a feeling it will be necassary to make a Mod that links in with this plugin but that will probably take some time and I am not familiar with making Mods.
     
  2. Offline

    imjake9

    No. There is no way to determine the size of a player's JAR from the server.
     
  3. Offline

    LartTyler

    Just use Spout, it automatically checks stuff like that...
     
  4. Offline

    imjake9

    Even Spout can be fooled. Modded Spout clients could, in theory, still bypass that check. Besides, I don't think he wants to force all players to use Spoutcraft anyway.
     
  5. Offline

    LartTyler

    Well Spout, as far as I'm aware, DOES check for client modifications. I could be wrong, of course. And I never said he did, it was just a suggestion :p
     
  6. Offline

    Lemonz1805

    Is there a way I could integrate Spout into my plugin without the need for my users to use the Spout client? If so that would be great :D
     
  7. Offline

    LartTyler

    You can use the Spout plugin, but you'll be limited to a degree. Without using the client, you don't get the security benefit that this thread was originally discussing. Additionally, you can't implement certain features of Spout, such as custom blocks and items. However, all the additional Spout API is still available. Just download the Jar file for the API and use it like you would Bukkit's. Just watch for methods tagged with the @ClientOnly annotation in the javadoc, since those require the client and won't have any effect if the player isn't using it.
     
  8. Offline

    XbannisherX

    It is actually possible, but not in bukkit, only with a very advanced program which can communicate with your server... a non bukkit program
     
Thread Status:
Not open for further replies.

Share This Page