Suggested name: ChestRestriction What I want: Because of a certain feature on our PVP server, it would be really useful to have a plugin that stops you placing certain item id's in chests. Meaning, either it just goes back into your inventory, or deletes it. Either would be fine. Ideas for commands: /cr add/remove [itemid] Ideas for permissions: None Needed When I'd like it by: If this is possible, it would be VERY useful to have it in a few days, but if someone is willing to make it then it's up to them I'd just be very grateful. Thanks to anyone wiling to take a look at this, -Semajnad NOTE: I've had a look, and couldn't see a plugin that could do this. I thought ModifyWorld could, but apparently now
I can definitely do this with some time, but this would only be my second or third plugin I've made for someone, so it may take a little bit. I've started some basic work on it, and there isn't anything completely unlike what I've done before, so it shouldn't be too long of a project, even for a noob
Would be awesome if you could do it Thanks for taking the time. Also, sorry to be a pain but I didn't add it in the first post. Would it be possible to stop the itemID being put in ANYTHING eg furnace, enchanting table, crafting, chest etc. Not sure if this would make it any harder, but would help a lot. Still less of a noob then me I wouldn't know where to start tried java before and don't get it
Sure, I can do that. It'll take a little more effort, but not much. lol yeah I'm actually using plugin development as a means of learning Java. I've done plenty in procedural languages like C, but not much object-based stuff. Learning through examples is the best way to learn IMO, and the best way to do that is have fun with it via plugin making
Ye definitely, if you can find a fun way to learn something, that's better then doing it the boring way
RingOfStorms I should be okay me thinks. I currently have it basically done. Thanks though! Semajnad I think you would want permissions support, as anyone could just do "/cr remove 61" or something to let themselves place furnaces (for example). You sure you don't want permissions? (note, I'm still pretty new with permissions, so it would take a little bit longer to get that working too, but probably not very long) If you're sure you don't need permissions, here's what I hope is a fully-functioning plugin to do this It follows your command suggestion, but has no support for names or even damage values yet (like different types of wool or potions or anything). I can add that functionality, but I wanted to get the basic thing to you asap! <Edit by Moderator: Redacted mediafire url>
[quote uid=16593 name="wristdirect" post=1375159] Semajnad I think you would want permissions support, as anyone could just do "/cr remove 61" or something to let themselves place furnaces (for example). You sure you don't want permissions? (note, I'm still pretty new with permissions, so it would take a little bit longer to get that working too, but probably not very long) If you're sure you don't need permissions, here's what I hope is a fully-functioning plugin to do this It follows your command suggestion, but has no support for names or even damage values yet (like different types of wool or potions or anything). I can add that functionality, but I wanted to get the basic thing to you asap! <Edit by Moderator: Redacted mediafire url> Thanks for much for your hard work. Unfortunately, the commands aren't working, and when I try to load the plugin with PlugMan it says "File exists, but isn't a plugin file". I've tried restarting the server but it's not working. Again though, thanks so much it's been less then 24 hours and I'm so grateful for the help, -Semajnad
Hmm, I've never used PlugMan. This works just fine with the normal stick-it-in-the-plugins-folder-and-run-it method. I'll see what could be going wrong between it and PlugMan. Edit: Are you sure PlugMan works right? I went to its BukkitDev page and seems like a lot of people are complaining about it being out of date, and it hasn't been updated from 1.2.5. The plugin I wrote is made for 1.3.2. Are other 1.3.2 plugins working for you? Also, could anyone else who happens to be looking at this thread confirm ChestRestriction works? Just for sanity's sake. Okay, I recompiled for Bukkit 1.2.5. Lemme know if it works! <Edit by Moderator: Redacted mediafire url> edit: It could also be the Java version. Which are you using to run your server? EDIT by Moderator: merged posts, please use the edit button instead of double posting.
[quote uid=16593 name="wristdirect" post=1375342]Okay, I recompiled for Bukkit 1.2.5. Lemme know if it works! <Edit by Moderator: Redacted mediafire url> edit: It could also be the Java version. Which are you using to run your server?[/quote] I didn't use PlugMan as the primary method of loading the plugin :/ I put it in the plugins folder and loaded it, and it didn't work. I then tried /plugman reload ChestRestriction and it mentioned that it wasn't a plugin file :/ Strangely enough, it's working on my 1.3.2 server when compiled for 1.2.5, which is strange. It works perfectly, and exactly what I wanted When I place it in a chest, it just jumps back out. I need to check what it's like in furnaces etc. but at the moment it looks fine. Thanks so much for your work, I'll fully test this tomorrow. -Semajnad
No problem Actually, one thing that may be the problem..what version of java are you using to run your server? If you are using java6 that might be why, I think I compiled with java7, so it may cause a problem. I can recompile for 1.3.2 with java6 and see how that works for you. I'll edit this comment with the jar (I'll also start putting the source in the jar so you can look at it if you want ) <Edit by Moderator: Redacted mediafire url>
[quote uid=16593 name="wristdirect" post=1376445]No problem Actually, one thing that may be the problem..what version of java are you using to run your server? If you are using java6 that might be why, I think I compiled with java7, so it may cause a problem. I can recompile for 1.3.2 with java6 and see how that works for you. I'll edit this comment with the jar (I'll also start putting the source in the jar so you can look at it if you want ) <Edit by Moderator: Redacted mediafire url> Lol strange, I'm using Java7 but the Java6 1.3.2 one seems to work fine I've tried it with all things now, Chests, Furnace, Enchanting Table, Crafting Table, Enderchest etc and it all works. Thanks so much
calebbfmv The source code is in the jar, in the same directories as the class files. Semajnad No problem I'll probably add some minor changes over time, or if you or someone else finds any bugs or wants any new features. If I change anything, I'll try and remember to post the update in this thread as well so you can keep updated without checking the plugin page.