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........
I think this is a temperally error: Do you get this error if you type in the console: /gcheck
Here is the error it gave me.
http://pastebin.com/bqRUnpBB
Here is the config file.
http://pastebin.com/WmTZ4xzz
could you please send me your config file, so I can help you?
Got a warning in the log.
[WARNING] [CityGates] Loading Groups: Ignore Lines: 33, 57, 81
Checked the lines but dunno what is the problem.
hi pugsx,
As far as I know should CityGates v1.6 work fine also on a 1.2.5 server, because I had never have some errors or bug when 1.3.1 came, I just checked it and it works.
Hi, I'm using v1.3 due to my server still being 1.2.5(ported mods) and I'm getting a error message in my server log and gates no longer working even though they worked fine when i added the plugin.
Cheers PugsX
when you have created a animation gate is it showen in the config file: groups.yml, and when you have stoped your server
I mean that when you create a animated gate for example "up" you get testgate, testgate1, testgate2, testgate3 etc. However when i looked in the list i did not see the "testgate" only testgate1, testgate2, testgate3 ect.
hi LeChuuck
Do you mean that the group testgate that contains testgate1,2,3 isn't there any more?
Found a bug i think but got no error for you, all of sudden when i had restart the server the buttons dident work for the gates anymore and i could not find the gates that i hade done before. For example if i had done a testgate up, then on /glist it shows only the rest of the animation testgate1,2,3 etc but not the first one "testgate".
HI Avadis,
Everything u say is already their: You can set the time speed by increase of discrease the timedelay by using the command: /ggroup setdelay [Group] [Time delay(in millisec)]. CityGates also saves every block of a gate, but if a gate go open by animation the blocks stay at the same posistion but only disapere, so if you have a pattern I should look a little bit creapy :s, So I recommend to use only Patterns that are horizontal different but vertical the same.
This is a very nice plugin! Is it posible in next version to set the time (speed) of the animation? I have an idea for next version: saving the blocks and moving away, so i can make big doors with pattern ^^
hey its great plugin but icant set time gates i use permissions pls help and thanks
I'm not getting spammed by it anymore ^_^
DAMM!!!
forgot to edit the version number. Ive fixed it just download from the alternative downloads, I think that the normal download is not aproved yet!
Apparently the 1.6 on BukkitDev either reports itself as 1.51 and complains about there being an update, or what's listed as 1.6 is actually 1.51.
pls remove this update box... =/
YAY YAY YAY!!!! You fixed the permissions problem :D gate plugin now usable :D great plugin, best gate mod I've seen :D
Hi stutiguias,
I need some more info about your gate(group)
Can you send everything in the gates.yml to me (in a private message plz)
thanks Deathlykiller