Fields of Zen

Server => Server Information => Topic started by: killje on August 30, 2013, 05:13:56 PM

Title: Color Portals killje Edition!
Post by: killje on August 30, 2013, 05:13:56 PM
we have upgraded our color portals by a version i made.
before i go in how they work and how you create one first a few legal things:
the original mod is made by SnowGears (http://dev.bukkit.org/profiles/SnowGears/), you can few the ColorPortals plugin here (http://dev.bukkit.org/bukkit-plugins/color-portals/).
his version has as license: All Rights Reserved this means that full credit goes to him and i can't make money of this version, also i cant give you access to the source code or the modified plugin. so no you can't have this plugin on your own server.

with that out of the way.

first the reason why we moved on from the old plugin (the next few lines are going to be technical).
the old plugin relied on a way to save files called serializable. this saves data in a code not readable by humans but can be easily read by java. its a very handy system if you dont have time to code your own saving protocol. the downside is that if you add anything extra to save (like in one version it only saves the location and in the next version the location and world) it will break the old save file and this has happened. that's why the portals broke all the time. I now made a plugin that saves it to our own mysql data base. this is handy because i can read it and if i want to add something i don't have to be afraid that it will break.

now how to create a portal.
4 wool or stained clay of the same color
2 buttons (wood or stone)
2 signs.

(everywhere i say wool you also can use stained clay)

1. you want to put the wool block on where you want to have your button.
2. place your button on this wool, the block below the button must be air! but it can be more then one block of air. (you can make a trap by putting the button very high ;D)
3. then above the button you want your second piece of wool. (between this wool block and the button there can be air blocks).
4. put a sign on that wool with on the first line the name of the place you are now
    on the second line put the channel you wand to be on, remember this number.

you should now see appear INACTIVE on the fourth line.

5. repeat 1-4 on the destination (use the same channle number on line 2) the 3th and 4th line should now say:
Warps to:
<your name>

you can now hit the button to warp to your other portal!



now come some features i want to add in the future to this plugin:
1. claiming of channels.
2. admin able to set group specific portals.

if you have any suggestions leave a responce.
Title: Re: Color Portals killje Edition!
Post by: MosAnted on August 30, 2013, 06:10:06 PM
Will the old portals still work, or do we have to remake them?
Title: Re: Color Portals killje Edition!
Post by: killje on August 30, 2013, 06:16:19 PM
you have to remake them as the old colorportals totaly broke on us and the save file is not readable :(, my mod also requirs to have a air block below the button and old portals have a pressure plate under it
Title: Re: Color Portals killje Edition!
Post by: MosAnted on August 30, 2013, 11:09:54 PM
Just checked: The old colorportals still work, at least the one to my Nether does (which is a good thing otherwise I'd have to wait until an admin is online to remake it ^^)
Title: Re: Color Portals killje Edition!
Post by: Scorp on August 31, 2013, 02:06:05 AM
Killje remade everyone's nether portals when he first installed the plugin ;)