Minecraft version: 1.16.4 What I want: The goal of this plugin is to help save time, setting up teleport pads. The goal of the plugin is to be able to run the command /setpad {name} then the player will be told to click on a stone pressure plate and then on a gold pressure plate. The stone plate will teleport the player or mob to the gold pressure plate. I want to used this to make an escape room, with a maze of teleporters. The plugin should also generate a configuring Teleportation Type: One way from a stone pressure plate to a gold pressure plate. Configuring: Records the name, world name, location of the plates and lets you define a universal teleport delay for all the teleporters you create. Ideas for commands: /setpad {name} /paddle {name} /pad reload /padlist Ideas for permissions: pad.create , pad.use, pad.deny
Be more specific, the teleport only happens form the stone plate to te gold one , or vice versa? Also generate a configuration? what for? what do you want in the config?
Teleportation Type: One way from a stone pressure plate to a gold pressure plate. Configuring: Records the name, world name, location of the plates and lets you define a universal teleport delay for all the teleporters you create.
Made this quick and basic all with one class. JAR and Source Code are both in the attached TeleportPlates.zip if anyone wants to play around or expand on the code. If you want to use portals for your escape room or elsewhere, check out one of my other plugins: PortalStones
Hi this is why it is not working. Could not load 'plugins\TeleportPlates.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: App has been compiled by a more recent version of the Java Runtime (class file version 57.0), this version of the Java Runtime only recognizes class file versions up to 52.0
I don’t know what to do about the two different java environments. I currently only have java 8s latest update installed on my server.
I recompiled it for Java 8. My bad, I think the first one was compiled with Java 13. If there are any more issues I'll try my best to help. Download
Hi, whenever I place a plate in another world and close the server and restart it resets the config. I get this error https://pastebin.com/W9iiWK7a
Can you show me what the config looks like before it get's reset? EDIT: Also if you are using something like multiverse, it has to start up and load your worlds before this plugin tries to access them. Add a soft depend to your multiverse-like plugin by doing the following: Code: Make sure the server is stopped/offline. Rename your TeleportPlates.jar to TeleportPlates.jar.zip Open the zip file. Open the plugin.yml from within the zip file to edit it. Add in a soft-dependancy like this: ... softdepend: [Multiverse-Core] softdepend: [Place Other Plugin Name Here] commands: ... Save the config.yml, and overwrite the file in the zip when prompted. Rename the .zip back to .jar Start the server.
This what the config becomes when there is an error. I am doing the fix you suggested. Teleport Plates: A: {} B: {} C: {} D: {} E: {} F: {}
I guess the Fix did not help? I need the config before the error occurs, not what it turns it into because of it. Are you doing any manual editing of the config that might cause this error? With current information the best I can do is have the program soft fail, where your config does not get blanked out, but the plugin fails to run. EDIT: Just to explain, the cause of the error is: When the plugin starts, it maps the information in the config.yml to Bukkit Locations. The plugin starts with a blank map then goes from there. At some point, one, or all of the locations in the config are found not to actually exist (the world they are in has not been loaded by the server, or they have been manually edited incorrectly), the error occurs, and the map stays blank. When you turn the plugin off it saves the map, which is now blank and you loose the config. I did not realize your escape room was going to be across multiple worlds, and therefor the assumption was all locations would be valid. What new plugin.yml should look like (Move your mouse to reveal the content) What new plugin.yml should look like (open) What new plugin.yml should look like (close) Code:YML name: TeleportPlatesmain: Appversion: 1.0api-version: 1.16author: ForbiddenSoulsoftdepend: [Multiverse-Core]commands: teleplate: description: "TeleportPlates created by: ForbiddenSoul" usage: /teleportplates teleplate-make: description: "Makes a new Teleport Plate" usage: /teleplate-make {name} permission: teleplate-make permission-message: You do not have permission to use teleplate-make teleplate-list: description: "Lists all Teleport Plates" permission: teleplate permission-message: You do not have permission to use teleplate-list teleplate-reload: description: "Reloads config.yml discarding any changes" permission: teleplate permission-message: You do not have permission to use teleplate-reload teleplate-remove: description: "Removes a Teleport Plate by name" usage: /teleplate-remove {name} permission: teleplate permission-message: You do not have permission to use teleplate-remove teleplate-allow: description: "Allows a player to use Teleport Plates" usage: /teleplate-allow {name} permission: teleplate permission-message: You do not have permission to use teleplate-allow teleplate-deny: description: "Denies a player from using Teleport Plates" usage: /teleplate-deny {name} permission: teleplate permission-message: You do not have permission to use teleplate-denypermissions: teleplate: description: "Allows usage of TeleportPlates commands." default: op teleplate.make: description: "Allows making of Teleport Plates." default: op teleplate.allow-use: description: "Allows use of Teleport Plates."
Sorry this took a while to get back to you on, I was not alerted about a reply. I have tried using the same settings as in your config.yml, and I can not re-create the issue. Just so long as the worlds are loaded before this plugin tries to get locations from them, everything works fine. Adding the softdepend to multiverse ensure multiverse has completely loaded of all the worlds specified prior to this plugin doing it's thing. If you have not set up multiverse to load these worlds on startup, that is on you, you must do that. If you use some other plugin to manage your worlds, add a soft depend to that plugin instead. This plugin simply teleports you from one place to another, it does not handle world management for you.