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 Oct 17, 2012Thanks very much, your plugin is very good, thanks!
-
View User Profile
-
Send Message
Posted Oct 16, 2012I've no Idea, It isnt my plugin that delete those files
-
View User Profile
-
Send Message
Posted Oct 10, 2012@Deathlykiller
Not the plugin folder, just the folder with the 3 files from citygates. It deletes all the gates i have made when i restart the server.
-
View User Profile
-
Send Message
Posted Oct 8, 2012I think I don't understand you right: You saying that your server is cleaning you plugins folder with all the config files in it, every time you reboot your server?
-
View User Profile
-
Send Message
Posted Oct 6, 2012@Deathlykiller
Euhm where can i check this? Still new to plugins on MC. From what i see on the server it empties out the gates etc and files. So when i reboot the mc server it creates a fresh install of the plugin files. Which means all gates made are gone
-
View User Profile
-
Send Message
Posted Oct 6, 2012If you restart your server say citygates something about ignore lines of gates or groups?
-
View User Profile
-
Send Message
Posted Oct 3, 2012Hey, Is it normal that when i restart my server it deletes all the gates so i have to re enter all of them? Or am i doing something wrong somewhere?
Greetz
-
View User Profile
-
Send Message
Posted Oct 1, 2012I'm awere of this bug, just try to reload your server/restart it. If it isn't working try it agian.
-
View User Profile
-
Send Message
Posted Sep 30, 2012Hey, ich have a Problem. I've installed your plugin, but when i use any command, it says 'You dont have the permission to do that!' Don't know what to do now, can you help me pls? ^^
-
View User Profile
-
Send Message
Posted Sep 16, 2012I'm awere of this bug, but I don't know how to fix it, maybe its something in with the bukkit api
-
View User Profile
-
Send Message
Posted Sep 15, 2012Hey Deathlykiller,
I was using your plugin the other day, and realized that some gates were opening when the sun came up, and others weren't, and playing around with it, if someone is able to see it, it will open, but if not, it won't. Thought this was strange. I am not sure if it is just something I did wrong, or if it is a normal thing.
-
View User Profile
-
Send Message
Posted Sep 12, 2012Here is the Download link of it: Download Link
Please tell me if it fix it. :p
-
View User Profile
-
Send Message
Posted Sep 11, 2012uff :/ can i test it with towny? maybe works (hope) btw no it's impossibile.. we can not add player per player.. :(
-
View User Profile
-
Send Message
Posted Sep 11, 2012its /Gsetperm (just some stupid error XD)
Is it a big server with much people that are changing territories rappetly? otherwise you can add manually a node to a spicefic player and not a group.
I've tested the prioritys on a server with world guard installed, but it doenst fix it.
-
View User Profile
-
Send Message
Posted Sep 11, 2012be careufull since u have wrote above at the description: First set permission: use the command /(g?)setperm [Gate/Group] [all/open/close/kill/button] [true/false],
Make groups is a bit useless for me. I mean should be usefull IF that group can recognize a Town name from the player which is using it.. for eg: as i told you we are using towny here, I create 2 or 3 gates in a city, under their territories (claimed by them), would be usfull if i write: /gsetperm GroupName (for eg: Hamarkstal) botton true, in this case the'groupname' is hamarkastal and it's the city'name (where is placed the gate). All player from that city can open close all 2/3 gates.
-
View User Profile
-
Send Message
Posted Sep 10, 2012I forgot to tell you something: You can set permissions for each gate if you want.
/gsetperm [gate/group] [all/open/close/kill/button] [true/false]
for everyone who must have the permission to use the gate, add this nodel: citygates.user.gate.[gateName]
Admins have always access to all the gates
-
View User Profile
-
Send Message
Posted Sep 10, 2012ok i will try.. btw yes, if it's possible set the priority in citygates in normal? i guess factions and other pretection lik precious stone has the same problem
greetz
-
View User Profile
-
Send Message
Posted Sep 10, 2012hi skvll,
I think this problems has something to do with the prioritys of the events. The priority in citygates are set to the highest, so I thing if I put them to normal this will be fixed!
Yes it is already posible to make multiple buttons/lvers for 1 gate. You need to make a new group and add the gate to it. You can then put 1 listener to the gate and 1 to the group. You can as make as many groups you will.
-
View User Profile
-
Send Message
Posted Sep 9, 2012i got a problem, well isn't really a problem from your plugin (i guess), i'm using towny and towny settings says that non-resident aren't allowed to use button (they can't open door by pressing a button) but, if i use /gbutton for a gate and non-resident press it, he get an error where towny says that outsiders are not allowed to swith (open chest, press button, switch chest aso) but the gate will open/closed anyway.. i tryed fix with a lever but with a levere there is no time.. like a button.. in order to let player open it, go out and then it will close by self.
Another question, is it possible have multiple button/lver for a single gate? should be usefull.. so i can put a button/lever in a city and outside the gate/city, so player can open/close it in both side.
greetz
-
View User Profile
-
Send Message
Posted Sep 3, 2012I have removed citygates but i will try again and see what happens, i did type /gcheck in console and no error.