Plugin (no player interaction)

Discussion in 'Plugin Development' started by MiliasColds, Jan 27, 2011.

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

    MiliasColds

    I am writing this plugin for a class project, and i need to scan the world for all the block data, which means i need a world object, i can't seem to find where i can instance one of them to the current server world. once i have this i believe the other part (arbitrarily changing blocks) will be done through this object. and by all i mean subset, but not player position related :p
     
  2. Offline

    tkelly

    getServer().getWorlds() will return you the array of all the worlds. Currently there is only the one, so getServer().getWorlds()[0] will get you that world.
     
  3. Offline

    MiliasColds

    getServer() is static then ?
     
  4. Offline

    tkelly

    JavaPlugins have the method getServer(), so your plugin will inherit this, and you can use it.
     
  5. Offline

    MiliasColds

    TY, working on it it will be ant colonies if anyone is interested :p
    --- merged: Jan 27, 2011 10:48 PM ---
    hmm i got it all looking fine and all i get is invalid plugin :(
     
  6. Offline

    MonsieurApple

    I *think* that means you forgot the plugin.yml file.
     
Thread Status:
Not open for further replies.

Share This Page