PortalCommands
There is a major bug fix with portal uses in v2.1.1. It requires Interactables v1.1.1!
Thanks for 5,000 downloads! 10,000?!?
PortalCommands allows the creation of portals that when entered, will execute commands and/or send messages.
The plugin Interactables is NECESSARY for this plugin to run as of 2.0! Download it here.
Features
==========
- Worledit-based creation system meaning that portals can be any size.
- Set a command (or commands!) for the portal to execute on entry.
- Set a message (or messages!) to be sent to the player on entry.
- Multi-word command and message support.
- Colored message support.
- Choose if the player or console sends the command.
- Set cooldowns for portals.
- Player variable! Use @p in commands or messages and it will be replaced with the executer's name.
- Set use limit for portals.
- Use the Special portal type to support commands from custom command plugins.
Following for PortalCommands 2.0+ only!
Visit here to see a guide for previous versions.


Required Dependencies:
- Interactables: Link
- WorldEdit
Upcoming Features
==================
Suggestions! Please let me know of any errors you find!
@IsaiahPatton
Newer updates are on SpigotMC. It should work with 1.10. If it doesn't, message me on SpigotMC and Ill work on updating.
1.10?????
@Deadbushh
Do you mean the nether portal block? Portalcommands doesnt use the standard nether portal, just uses a region defined with WorldEdit.
Hey, I know this is a derp question, but how do I actually summon the portal for people to walk through?
@DoudouPike
If you are looking to add long or complex messages, the best way is to probably manually add them to the configuration. In the Interactables plugin folder, there should be a file called PortalCommands.yml. In that file, just add new entries in the "messages" section of any portal and then start the server.
@LavaGaming
Yes, the root command will cause an error. The full command should still create the portal though.
THANK YOU VERY MUCH !
Awesome plugin, Work very well !
The only problem for me that the longest of some commands... We can't write long message with "/interactable addportalmessage" command. (NB: In commands sections, it's write 'addportalLmessage', with two 'L'..) So can you add a shortcuts like "/int addpm <msg>"
[sorry for my bad english]
_
[EDIT]
Can you add /interactable editportalmessage <ID> <msg> (/int editpm <ID <msg>) ? (or something like this)
I think I have the error that's causing 1.9 to not record to the configuration file:
[22:08:50] [Server thread/INFO]: Permanently issued server command: /interactable addportalcommand [22:08:50] [Server thread/ERROR]: null org.bukkit.command.CommandException: Unhandled exception executing command 'interactable' in plugin Interactables v1.1.2 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) [spigot.jar:git-Spigot-6f291ea-6026dad] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [spigot.jar:git-Spigot-6f291ea-6026dad] at org.bukkit.craftbukkit.v1_9_R1.CraftServer.dispatchCommand(CraftServer.java:645) [spigot.jar:git-Spigot-6f291ea-6026dad] at net.minecraft.server.v1_9_R1.PlayerConnection.handleCommand(PlayerConnection.java:1342) [spigot.jar:git-Spigot-6f291ea-6026dad] at net.minecraft.server.v1_9_R1.PlayerConnection.a(PlayerConnection.java:1177) [spigot.jar:git-Spigot-6f291ea-6026dad] at net.minecraft.server.v1_9_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot.jar:git-Spigot-6f291ea-6026dad] at net.minecraft.server.v1_9_R1.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot.jar:git-Spigot-6f291ea-6026dad] at net.minecraft.server.v1_9_R1.PlayerConnectionUtils$1.run(SourceFile:13) [spigot.jar:git-Spigot-6f291ea-6026dad] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_74] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_74] at net.minecraft.server.v1_9_R1.SystemUtils.a(SourceFile:45) [spigot.jar:git-Spigot-6f291ea-6026dad] at net.minecraft.server.v1_9_R1.MinecraftServer.D(MinecraftServer.java:721) [spigot.jar:git-Spigot-6f291ea-6026dad] at net.minecraft.server.v1_9_R1.DedicatedServer.D(DedicatedServer.java:400) [spigot.jar:git-Spigot-6f291ea-6026dad] at net.minecraft.server.v1_9_R1.MinecraftServer.C(MinecraftServer.java:660) [spigot.jar:git-Spigot-6f291ea-6026dad] at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:559) [spigot.jar:git-Spigot-6f291ea-6026dad] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_74] Caused by: java.lang.ArrayIndexOutOfBoundsException: 2 at com.qwertyness.portalcommands.command.AddCommand.run(AddCommand.java:21) [?:?] at com.qwertyness.interactables.command.CommandHandler.onCommand(CommandHandler.java:47) [?:?] at com.qwertyness.interactables.Interactables.onCommand(Interactables.java:57) [?:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [spigot.jar:git-Spigot-6f291ea-6026dad] ... 15 more
Not sure if it is correct or not, as if I type the full command nothing happens, but I definitely got this by typing the root command.
Wonderful plugin! I use over 20 portals on my server! Do you think that it would be possible for you to add a cost for using the portal? For example, say a portal has commands to move someone up a pex ladder, and the rank up is supposed to cost $500. Would it be possible for you to not allow someone to enter if they don't have sufficient funds? Just a suggestion. Once again, great plugin!
Edit: We did find our way around this by making world guard regions to take money, but I still think that this wouldn't be a bad idea.
@Qwertyness
If you wanna add titles why not use my API at dev.bukkit.org/bukkit-plugins/ClusterAPI
@TheModsKidServer
I will certainly look into that.
Can u add a feature to use titles added in 1.8? Example command: /interactable addportaltitle <portal_name> <title_message> And then: /interactable addportalsubtitle <portal_name> <subtitle_message> Colour codes could also be used
@stretco101
@ServerElementals
I have been receiving some reports of problems with 1.8 servers, but have not been able to collect enough information to find the cause. If you have any console errors, you can PM them to me in a pastebin along with the configuration file. It is also helpful to have procedural instructions on how to reproduce the error including any commands you used.
Thanks for your patience.
Im experiencing similar things to 101 I would love an update :D
Would you please update this to 1.8 with spigot or the craftbukkit they provide? I'm using 1.8 and this plugin is VITAL to my server, but bugs are appearing for example, sometimes when every 3rd person walks in the commands won't apply for them. Sometimes the plugin won't even work unless you restart this server.
Please update this!!!
The permissions don't work on the latest version...
@ryanthemagi
If you use the -t console type then the command is executed from the console rather than by the player. This does however require the command to have an argument for the player.
If that isn't possible, but the command has a permission, you can create a portal that adds the permission, executes the command, and then removes it:
@ProjectHyrule
Try /interactable createportal testportal -t special quickwarp
Is there a way to get the player to execute the command as a superuser?
Is this not working on 1.8.3? I've tried with a bunch of different hub plugins to force a GUI to open up for server selection, without any luck. I saw that people said ChestCommands GUI worked, so i tried that. THe command i used to create the portal was:
/interactable createportal testportal special quickwarp (quickwarp being the command i set in chestcommands).
I also tried executing as player and console, with no luck. Just says Unknown command.
anyone able to shed some light? xD