CityGates

Description
CityGates is a simple but useful plugin. This plugin allows you to close your large city walls or you mighty fortress with a gate. You make a gate out of block, next you use some simple commands to let the gate open and close on your command! To add the finishing touch to your gate, you can let the gate open and close with animation, like a real portcullis!
Feathures
- Create (animation) gates
- Open/close gates
- Bundle gates together in groups
- Timer to open and close gates on minecraft time
- Use buttons to open gates temporally
- Use redstone to use custom logic on gates
- Open gates by slaying mobs
- Protect gates against griefing
- Advanced permission support
Donation
Make a donation so this project can be maintained. Donate!
How to install
Download the plugin and copy it to your plugin folder of your craftbukkit server. Reload or restart your server to load the plugin. The savefiles of the gates and groups are stored in a yml file. Feel free to edit these files, but you can also use the commands.
Commands
- /gsave <gate/group>
- /greload <gate/group>
Gate commands
- /gp1 (select point 1)
- /gp2 (select point 2)
- /gshow (show your current selection)
- /gcreate [gate name] <direction:north/east/south/west/up/down> (create a <animation> gate)
- /gsetanimation [gate] <direction:north/east/south/west/up/down> (convert normal gate to an animation gate)
- /gchangeblocks [gate/group] [state:open/close] <children> (change the blocks of a gate to the current blocks, use children if you're editing a group)
- /gdelete [gate] <type:none/all> (delete a gate <with children>)
- /gperm [gate/group] [type:all/open/close/kill/button] [true/false] (set if a gate needs permission to interact)
- /gprotect [gate/group] [true/false] (protect a gate against griefing (default = true))
Interaction commands
- /glist (list al the gates)
- /ginfo [gate/group] (details about a gate or group)
- /gopen [gate/group] (open gate)
- /gclose [gate/group] (close gate)
Group commands
- /ggroup create [group name] (create new group)
- /ggroup delete [group] (delete group)
- /ggroup add [group] [gate] (add gate or group to this group)
- /ggroup remove [group] [gate] (remove gate or group from this group)
- /ggroup delay [group] [delay] (set delay between the children to open and close)
Action commands
- /gtimer add [gate/group] (gate now opens and close on time)
- /gtimer remove [gate/group] (gate no longer opens and close on time)
- /gtimer opentime [gate/group] [time] (set the minecraft time (0-23999) when this gate should open)
- /gtimer closetime [gate/group] [time] (set the minecraft time (0-23999) when this gate should close)
- /gbutton add [gate/group] (add the button you're looking at)
- /gbutton remove [gate/group] (remove the button you're looking at)
- /gbutton delay [gate/group] [delay] (set the time to close the gate after pressing the button)
- /gredstone add [gate/group] (add a redstonelistener to the block you're looking at)
- /gredstone remove [gate/group] (remove the redstonelistener from the block you're looking at)
- /gkill set [gate/group] [entity] (open the gate after this entity is killed)
- /gkill remove [gate/group] (remove kill listener for this gate)
- /gkill location [gate/group] (set the location where the mob should be slayen - /gp1 and /gp2)
- /gkill message [gate/group] [msg] (the message the killer receive after killing this mob)
Permissions
Admin
- citygates.admin.*
- citygates.admin.create
- citygates.admin.delete
- citygates.admin.setanimation
- citygates.admin.changeblocks
- citygates.admin.perm
- citygates.admin.protect
- citygates.admin.group.create
- citygates.admin.group.delete
- citygates.admin.group.add
- citygates.admin.group.remove
- citygates.admin.group.delay
- citygates.admin.button.add
- citygates.admin.button.remove
- citygates.admin.button.delay
- citygates.admin.kill.set
- citygates.admin.kill.remove
- citygates.admin.kill.loc
- citygates.admin.kill.msg
- citygates.admin.redstone.add
- citygates.admin.redstone.remove
- citygates.admin.timer.add
- citygates.admin.timer.remove
- citygates.admin.timer.open
- citygates.admin.timer.close
- citygates.admin.load
- citygates.admin.save
User
- citygates.user.open: true
- citygates.user.close: true
- citygates.user.button: true
- citygates.user.kill: true
- citygates.user.list: true
- citygates.user.info: true
Gate permissions
You can set the permission for each gate and group. You can do this with the command : /gperm [gate/group] [type:all/open/close/kill/button] [true/false].
If the permission is set to true you need be an op or have the following permission node:
- All permissions: citygates.user.toggle.[gate/group name] or citygates.user.toggle.*
- Open permission: citygates.user.open.[gate/group name] or citygates.user.open.*
- Close permission: citygates.user.close.[gate/group name] or citygates.user.close.*
- Button permission: citygates.user.button.[gate/group name] or citygates.user.button.*
- Kill permission: citygates.user.kill.[gate/group name] or citygates.user.kill.*
To protect against griefing use the command: /gprotect [gate/group] [true/false].
If the permission is set to true you need be an op or have the following permission node:
- All permissions: citygates.user.toggle.[gate/group name] or citygates.user.toggle.*
- Grief permissions: citygates.user.break.[gate/group name] or citygates.user.break.*
Tutorials
Upcomming........
-
View User Profile
-
Send Message
Posted Jul 27, 2012hi smkun
If you type /gredstone test true you have to look at the lever. (Make sure not the block below it)
-
View User Profile
-
Send Message
Posted Jul 26, 2012Hey there. I can't seem to get /gredstone to work.
I placed a lever a few blocks from my gate, typed /gredstone test true (I got confirmation) and if I look in /ginfo it says redstone = true. But when I hit the lever the gate does not open. What am I missing?
Thanks
-
View User Profile
-
Send Message
Posted Jul 24, 2012It is nothing sever, it is just a temperally error
-
View User Profile
-
Send Message
Posted Jul 24, 2012<<code 2012-07-24 06:19:41 [WARNING] [CityGates] Error: 2 2012-07-24 06:19:41 [SEVERE] java.io.IOException: No such file or directory 2012-07-24 06:19:41 [SEVERE] at java.io.UnixFileSystem.createFileExclusively(Native Method) 2012-07-24 06:19:41 [SEVERE] at java.io.File.createNewFile(Unknown Source) 2012-07-24 06:19:41 [SEVERE] at citygates.Downloader.run(Downloader.java:84) 2012-07-24 06:19:41 [SEVERE] at java.lang.Thread.run(Unknown Source)>> <</code>>
I seem to be getting this error, and I was wondering what I should do about it?
-
View User Profile
-
Send Message
Posted Jul 23, 2012@florian7
nevermind restarted the server and it worked
-
View User Profile
-
Send Message
Posted Jul 23, 2012i am having a problem i don't know if this sounds stupid but i am the owner of my server and whenever i try to use /gp1 or gp2 it says that i don't have permission for this command
-
View User Profile
-
Send Message
Posted Jul 23, 2012plugin behavior is so great, but update check message is so redundant... you will update this hourly ??? and i wish no message when using newest version.
-
View User Profile
-
Send Message
Posted Jul 22, 2012@Deathlykiller
Don't worry the problem is fixed with the newest release. When I typed /plugins it didn't show up. It wasn't showing up in the console either and when I typed any of the commands it wasn't working just saying Unknown command. Thanks for the speedy reply :D.
-
View User Profile
-
Send Message
Posted Jul 21, 2012BRILLIANT!!!!!!!
-
View User Profile
-
Send Message
Posted Jul 20, 2012Hi xou816,
Thanks I like people who like my work (so i didn't do it for nothing :p)
btw: Are those buggs in v1.1 or v1.2?
-
View User Profile
-
Send Message
Posted Jul 20, 2012hi benolian,
Ho do you mean: the plugin wasn't there? Was it not anymore in the plugin folder or don't you see it in the console loading of give it errors (so yes, please post them)?
Do you have more plugins installed? And work they fine? Else try a new clean install of craftbukkit or is the starting directory properly set (it have to be to the folder where your crafbukkit.jar is!)
-
View User Profile
-
Send Message
Posted Jul 20, 2012hi rengvall01,
I will have a look at expskill. But maybe the problem is solved in version 1.2, because I have make some changes to the buttonlistener.
-
View User Profile
-
Send Message
Posted Jul 19, 2012O.o you're awesome. You did as I wished. Definitely trying out!
EDIT: redstone listeners are a bit buggy atm. Also the timegate option works fine when night comes (the gates slowly close) but when day comes, the animation is not loaded. Otherwise, this update is AMAZING!
-
View User Profile
-
Send Message
Posted Jul 19, 2012Hmmmmm. I installed the plugin via downloading the .jar file and upload it into my server's plugins folder. I then restarted the server but the plugin wasn't there. I have tried several times. I am using the right version of Bukkit and the plugin. Am I doing something wrong?
-
View User Profile
-
Send Message
Posted Jul 19, 2012The button worked once.
Made the gate, and set up the button.
used the button to make sure it worked, and the gate opened and the button dissapeared, after the time set for the button the gate closed, and the button was still gone.
After I posted the comment I also had problems with the gate timer not working - had three separate gates set up, one would not close, the other two would not open.
I removed CityGates, and about 1/2 hour later found I had issues with another plugin, I suspect it may have been a conflict with the other plugin (ExpSkill), so I reloaded CityGates but have not had a chance to try them yet.
Robert
-
View User Profile
-
Send Message
Posted Jul 19, 2012I just uploaded the new file, it just needs Approval :p
-
View User Profile
-
Send Message
Posted Jul 19, 2012New Update Comming Soon!!!
New Feathures
-
View User Profile
-
Send Message
Posted Jul 18, 2012Hi rengvall01
that is not normal!
Are you able to use it once or doesn't it work at all?
if it doesn't work at all you probably have selected the wrong block, make sure you are looking to the button!
else do the following so i have a better view of it:
Please report all of this as a comment or pm!
-
View User Profile
-
Send Message
Posted Jul 18, 2012When I set up a button listener to the gate, it disappears after 1 use, is this normal, and can a button be made so it stays?
-
View User Profile
-
Send Message
Posted Jul 15, 2012@Deathlykiller
Thank you Deathlykiller. That's no problem. These are just ideas, I understand that working on animations can be hard. Glad that you're working on permissions!