Resource Code List; This thread is a list of snippets of code that developers wish to share. If you want to use this code, feel free, but please give credit to the user who wrote it! Many players now just ask for the code, and don't care to learn from it at all, and although that is annoying to plugin developers, it's perfectly alright for starters. Just seeing code teaches new developers how to write their code, and I believe it actually makes more developers. If you do choose to post something on this list, make sure it is self-explanatory, and is not copied from an existing plugin (unless it is yours). If you wish to put some code on this list, please follow the template below: Code: [<user>] <**use**> <link> Please make sure you send a pastie/pastebin link to the code, not just a direct snippet! ____________________________________ [Jnorr44] Preventing players from changing their inventory: http://pastie.org/4190446 [one4me] Basic command outline: http://pastie.org/4200895 [one4me] Remove consecutive spaces from a string: http://pastie.org/4200907 [one4me] Turn an array into a string: http://pastie.org/4200901 [one4me] Extract any file from the route of your .jar: http://pastie.org/4200933 [one4me] Automatically update your plugin: http://pastie.org/4200943 Reserved EDIT by Moderator: merged posts, please use the edit button instead of double posting.