Pl3xGates
Description
This is a simple gate/portal type teleportation plugin. Just build a portal frame and stick a sign on the left side with some details (explained later). Right clicking the sign to select a destination gate. Walk through the gate and you will be teleported to the other gate you selected on the sign.
The sign layouts are simple. When creating a sign the first line is [gate] so the plugin knows you are attempting to make a gate. The second line is the name of this gate. The third line is the channel the gate is on.
Gates on the same channel can link to each other and will show up on the gate signs. Just right click on a gate sign to toggle through the other gates on the same channel. There can be more than 3 gates per channel, and the list on the signs will cycle through them all.
Please note that signs MUST go on the far left edge of the frame. Buttons can go anywhere on the frame
Requested here: http://forums.bukkit.org/threads/gates-sign-chooser.178825/
There are permissions to control who can create, destroy, change the destinations, and/or teleport.
Now with 100% more lava and portal blocks! As of v1.7 you can set any block as your portal filler. Water, lava, and portal seems to be the best options, but you can choose literally anything. Use solid blocks if you want to make one-way gates. ;)
If you have any questions about how it works dont hesitate to ask in the comments below.
Enjoy! ^_^
Commands
/pl3xgates (reload) View version info and/or reload config.yml from disk. (Aliases: gates)
/gateinfo Get info about a certain gate. (Right click sign after command) (Aliases: ginfo, gi)
Permissions
pl3xgates.create Allows player to create gates.
pl3xgates.create.remotes Allows player to create remote signs for gates.
pl3xgates.delete Allows player to delete gates.
pl3xgates.delete.remotes Allows player to delete remote signs for gates.
pl3xgates.destination Allows player to change destination of gates.
pl3xgates.teleport Allows player to teleport through gates.
pl3xgates.make Gives pl3xgates.create & pl3xgates.delete & pl3xgates.create.remotes & pl3xgates.delete.remotes
pl3xgates.use Gives pl3xgates.destination & pl3xgates.teleport
pl3xgates.command.* Gives pl3xgates.command.pl3xgates & pl3xgates.command.gateinfo
pl3xgates.admin Gives all permissions, plus gate and channel owner override rights
Default config.yml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | # Enable debug info in console debug-mode: false # Enable colors in console output color-logs: true # Enable sounds # All compatible sounds can be found in this list: http://jd.bukkit.org/rb/apidocs/org/bukkit/Sound.html play-sounds: true # Sound played at both gates when teleporting teleport-sound: SPLASH # Sound played at gates when activated (fills with water) activate-sound: SWIM # Sound played when selecting a destination destination-sound: FIRE_IGNITE # The tag for line 1 on the gate signs. Default is 'gate'. gate-sign-tag: 'gate' # Enable or disable the use of remote gate signs enable-remote-signs: true # The tag for line 1 on the remote signs. Default is 'remote'. remote-sign-tag: 'remote' # The style for gate names. Maximum of 4 characters. Anything longer will be cut off. # Note: Bug in Minecraft requires color codes to come BEFORE style codes or the style will not work. gate-name-style: '&1&l' # The style for destination names. Maximum of 2 characters. Anything longer will be cut off. # Note: Bug in Minecraft requires color codes to come BEFORE style codes or the style will not work. gate-destination-style: '&o' # Maximum number of frame blocks allowed per gate maximum-frame-blocks: 10 # Teleport minecarts through gates teleport-minecarts: true # Enable or disable filler effect for "always on" gates always-on-show-filler: true # The default filler if none specified on sign default-filler: STATIONARY_WATER # Allow buttons to activate/deactivate gates use-buttons: true # Number of seconds for gates to stay active when button its pressed remain-active-for: 10 # Allowed materials for gate frames frame-materials: - STONE - WOOD - OBSIDIAN - IRON_BLOCK |
config.yml for v1.7
Todo
- Add language file
- Perm nodes for filler blocks
- More optimization for better experience
- Allow mobs to travel through gates (not sure if I'm going to do this one, will create lots of lag)
Ability to ride horses through gatesAdded in v1.5Sounds!Added in v1.5Remote signs to control gatesAdded in v1.4Allow names to be reused (as long as not on same channel)Added in v1.3Owners of channels/gatesAdded in v1.3On/Off statesAdded in v1.3Check for valid frameAdded in v1.2Variable frame sizesAdded in v1.2Allow minecarts to travel through gatesAdded in v1.1
Have a suggestion? Comment below!
Known Issues
- TNTMinecarts lose their primed state when teleported. *
- FurnaceMinecarts lose their powered state when teleported. *
- Entities do not teleport through the gates unless riding a minecart.
- Entities on minecarts do not teleport to different worlds.
- Gates do not load on startup, sometimes. ✝
* No methods in the Bukkit API exist yet to fix both these issues. I could expose the NMS methods via reflection to fix them, however that would mean all future versions on this plugin will be CB version dependent and not future/past version compatible. Another possible solution is to add a dependency like BKCommonLib which has already exposed the NMS methods needed. I've decided to leave this as-is for now. At least until I get enough feedback that these fixes are actually even needed/wanted.
✝ This is due to the order Bukkit loads plugins on server startup. If you are using a plugin to control your worlds, then that plugin must load before Pl3xGates. You can manually do this yourself for v1.5 and below, all future versions will have this fix by default. Use WinRar (or 7zip, etc) to open the Pl3xGates.jar file and then open the plugin.yml in a text editor. The top few lines you need to add a "load" and a "softdepend" to it. Here is what the first few lines should look like with the fix (lines 6 & 7) applied: http://pastebin.com/maGeUT4F Just save this back to the .jar file and restart your server.
Videos
Metrics
This plugin uses metrics to collect stats! It only collect basic things such as version type, and players online. If you want to see everything, click on the graph. Go into /plugins/PluginMetrics/config.yml to disable stat collecting if you wish.
Hi, I wanted to know how I can for the normal players to be able to use the portal of the gate being teletarnsportado to the place of the oltro port that is marked , Pf presiso di help about this
@BillyGalbreath
Oh Sweet heavens, thank you for picking this back up. I've been waiting AGES for an update, I'm a huge of of pl3xgates! Is there any way the issue with the portals randomly deactivating after a restart can be fixed? Or is that issue already fixed?
I am taking this project back due to lack of activity from 1Rogue. ^_^
How do i set the "Permissions" so my costumers can use the gates?
PLZ help
Please add sugar cane gate don`t work
1Rogue is taking over this project.CaioVillar | VineWoodCraft
Great plugin! Why do not you put to get the material frame by id in config.yml?
hi, i got aniother problem with this plugin. i think the selection of the destination is a bit buggy. if i have 2 portals in the channel it works fine, if i create a third one, it skips the new one if i chose it. even if i click once. in console it acts twice. if i create a fourth one everything works fine again. i think there is a problem with odd numbers of gates.
and our lift plugin gives a null poointer exeption when i chose destination :
[19:23:01 INFO]: [Pl3xGates] Destination Changed. Dest: Verona Index: 1 [19:23:01 INFO]: [Lift] Player elevator generation returned a null object. Please report circumstances that generated this error. [19:23:01 INFO]: [Pl3xGates] Destination Changed. Dest: Dianusis Index: 0 [19:23:01 INFO]: [Lift] Player elevator generation returned a null object. Please report circumstances that generated this error. [19:23:05 INFO]: [Pl3xGates] Destination Changed. Dest: Verona Index: 1 [19:23:05 INFO]: [Lift] Player elevator generation returned a null object. Please report circumstances that generated this error. [19:23:05 INFO]: [Pl3xGates] Destination Changed. Dest: Dianusis Index: 0 [19:23:05 INFO]: [Lift] Player elevator generation returned a null object. Please report circumstances that generated this error.
there i clickes two times: 19:23:01 and 19:23:05. on both clicks it acts twice. at this time there were 3 gates in the channel.
i hope you can fix that
I'm going to spend some time on this plugin this coming up weekend. I will add a few features that have been requested, update to 1.7.x standards, add a language file (lang.yml) for customizations, and I will go over the base logic for channels/owners to see if I cant find something more optimized that also allows for more customization/situations. ;)
Hi, great plugin!! I don't know if my problem is an error. I'd like to have a network of portals on my server. All gates in only channel. My team contents 5 admins , so 5 persons who are allowed to create portals. one admin creates a channel and two portals. tomorrow(for example) another admin creates a portal for this channel and the portal works. thats fine. But after a restart, the portal is broken. i think your plugin works as follows , that achannel has an owner and nobody who doesn't own it can create gates for it. Did i understand right?
i wish all ops were able to create gates in every channel. is that possible? :D
Edit: is there a source code? Maybe my team is able to change it.
please add lava water filler Permissions node
I do not want player use lava and water filler
thanks
Can you make a config to make all blocks in frame-materials?
can you fix this bug?
or prevent player use "blank"
thanks
@ircopdd
Try putting quotes int he YML file since you are doing it manually.
error
http://dev.bukkit.org/paste/8936/
can't use Blank
Fo bridge:
owner: foeason
gates:
The U:
S: {}
Fo kingdom:
owner: foeason
filler: WEB
world: world
x: 26521.0
y: 72.0
z: 23049.0
@BillyGalbreath
Ok. Thanks for the help. I will try to see if there are any errors and get back to you if I see one.
Very nice plugin BTW.
Also, what's your server IP?
@Derekd98
No idea, to be honest. I havent seen that kind of behavior, and I use a lot of gates on my server. See if you cant catch an error in the logs, or maybe figure out how to recreate the situation and let me know.
@BillyGalbreath
Yes. I have to destroy the sign and make a new one. But all the other gates work when I reload.
@Derekd98
Re-link them as in right click the sign, or do you have to destroy the signs and make new ones? If it is right clicking then that is expected behavior (for now at least). The links are all reset/lost when the server resets or the plugin reloads. I'm still working on ways to get them to at least link to the first destination, but its very quirky and some dont link.