Well the day has finally come for ClearInv to grow up and become a 2.0, I decided that the 1.9.7 update had so much in it that it was worth a major version increase. Amongst the bug fixes and compatibility adjustments there are 2 new major features, there is now a continuous preview mode, which as the name implies will continuously update your inventory with the players inventory. In order to do this you simply do “/preview -c <name>” the -c flag will make it continuous. I have also added a new clear mode which required the LWC (lightweight chest protection) plugin to be installed, basically you can clear a players inventory to a chest which is locked under your name. This was requested by quickclay on bukkitdev. Both of these commands required the permission node clear.other, however I will likely be reworking the permission system soon to separate the preview commands. For a full change log, or to download the latest version click here.
I’m sorry about the lack of posts lately, I have been pretty sick with a stomach bug which has been slowing me down. However soon I will be posting the first part to my final project for my ELE 206 project, which will be a multipart series about using the arduino for home automation (specifically in my case involving the garage).
So this is just a general checkup and notice about the state of the site. Currently being a full time student I am quite busy, however I do love running this site, so I will be trying to make some time for it. With the beta’s for bukkit 1.2 I have been busy working on my plugins instead of working on more programming tutorials, but those will begin again soon. I also will be starting my final project for my artificial intelligence class soon (waiting on the proposal to be approved while writing this), which I plan to document on here along the way. It will be my first delve into single player minecraft mods, but that is all I will go into about it currently. I also have begun working on my micro-controllers final project which will be documented here. I will be rigging up an arduino in order to control a garage door remotely as well as get the status of the door itself. I plan on documenting that along the way here as well as hopefully doing some arduino stuff over the summer, but only time will tell. Finally I would like to thank YellowAPI for inviting me to join their site, this has been a great opportunity, and the increased attention on the site is giving me more motivation to do more stuff for the site. Thank you for following my site or stumbling upon it by accident.
Today I released ClearInv 1.9.7 R2, this includes a new command which allows server admins to clear items from a players inventory and have them be stored in a locked chest (using LWC). So as you might expect this command requires LWC for the command, if you don’t have it, then it will let you know to install it. That is the main change from R1 to R2, if you’d like to download it, check it out here.
Well this is a minor update, in order to patch the code that concerned ferrybig about screwing up the servers. I feel this would never happen and have been running it on the server I’ve played on for a long time in the unpatched version. However if you feel that sending a player a message will forever corrupt your map files, feel free to download this version.
I am releasing the first release candidate for 1.9.7 today, the changes include the new preview mode, which can be used by doing “/preview -c ” which will give you a continuous (or nearly continuous) preview of a players inventory. I have also added a new list to the config.yml, which is for dangerous items, if you preview a players inventory from the server console and they have an item on that list, it will be in red text so that it stands out from the normal gray text. Besides those two new features this is mostly a maintenance update in order to keep it current and up to date for minecraft 1.2 and the changes made to bukkit. In order to download it, check it out on bukkitdev, it should be up there soon.
ClearInv 1.9.7 is in the works, and will be 1.2 compatible of course. I have also been working on some major code cleanup and refactoring in order to make it compatible with 1.2. I also have begun adding a new feature, the ability to have a live preview of a players inventory, this will be done with a -c flag (for continuous). For example if you were going to have a continuous preview of my inventory (wwsean08), you would do the command
/preview -c wwsean08. It is currently not perfect and the updates are not necessarily perfect, but it is still a work in progress. Currently the updates are one behind, and will hopefully be working before a recommended build for bukkit 1.2 comes out. If you want to follow my progress check it out on github.
Introduction and recap:
To recap lesson 2, we went over how to read input from the console, and then convert it to an integer. We then used an if statement in order to parse that input and display whether the number given is even or odd. In this lesson I will be teaching you how to use the try/catch block in order to catch exceptions that can occur, as well as teach you how to implement loops. Let’s get started
Almost any program that is at all advanced takes some sort of input, whether it be a file, or a command from the user. In this lesson we will be learning how to do some basic input and output (generally called IO) as well as using if statements in order to determine if the input is what we want in order to make a more advanced programs. If you continue with this series, IO will be quite important while working with bukkit plugins, as they have multiple parts to their IO. In a bukkit plugin you have commands, events being triggered, and configuration files for example. So in this project we will be asking the user to give us a value, then we will tell them if that value is even or odd. Let’s get started