Hi I need a plugin that lets a player switch worlds to the nether and overworld only by holding a nether brick (405) and right clicking. Each time you use it should take some of your exp and work for all players on the server by default.
Does it have to go to a spawn or something or does it have to go to the last location or random? And do you also need something to get back?
Should work the same as the world command by using the item you can go back and forth between the nether and over world. For example in the over world when you use /world you end up in the nether and when you walk 5 blocks in the nether and use world you come back 15 blocks away from the spot that you first enter the nether.
Okey, maby i will make this tomorrow. If i have the time for it, i will make this But if someone is quicker than thats fine.
I will try and dev this today, but not too sure if I will succed , very new to bukkit devdelopement. RedGoldX Phew, sorry this took so long, this was just a learning expierence for me Anyway, the plugin has world naming support, so incase you did rename your nether world or overworld differently, just specficy so in the config, you can also specificy the exp requirement to tp between the worlds. Here ya go:https://dl.dropboxusercontent.com/u/156377627/NetherTeleport.jar it is configured for MC 1.7.5, if you need MC 1.7.9, just ask! Careful, the player may die as you arent tping them to the spawn location, so they may fall in lava. I recommend you have the player tp to the nether spawn location ,ask me if you want to change it EDIT: I suggest you redownload the jar, I realized that it had a ton of bugs, and fixed them. EDIT #2: Ok, exported using 1.7.9 EDIT #3: Just added a "You need more exp msg" for players who dont contain the requirement amount EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Needs to work in 1.7.9 and 1.7.10 Thank you for making the plugin EDIT by Moderator: merged posts, please use the edit button instead of double posting.
I talked to him and he does not know how to make it work like the /world command from essentials right now his plugin just sends you to the spawn points of the both worlds.
When you are in the over world and you use the /world command you are send to the corresponding coordinates in the nether, if you walk a few blocks in the nether and come back to the over world you will have traveled a larger distances . Yes it need to send you to the corresponding place in the nether and back to the over world and each trip should cost exp EDIT by Moderator: merged posts, please use the edit button instead of double posting.
RedGoldX Try the reply button, or the tahg button. And that is pretty much basic nether functionality.
If you want my main code for the plugin, so you could add in your method and not have to rewrite the code, pm me. timtower and would be having the location correspond to the nether be very basic? If you have time time, mind telling me exactly how? I'd make a help therad anyway, as I'm still learning the ropes of bukkit. Code: if(player.getWorld().getName().equalsIgnoreCase((NetherTeleportation.getInstance().getConfig().getString("overworld")))) { player.sendMessage(ChatColor.RED + "You have been sent to the nether!"); player.setLevel(player.getLevel() - NetherTeleportation.getInstance().getConfig().getInt("exp-requirement")); World nether = Bukkit.getWorld(NetherTeleportation.getInstance().getConfig().getString("nether")); Location loc = nether.getSpawnLocation(); player.teleport(loc); I get the spawn location, which is pretty much it, not sure what I'd to have it correspond to it, if oyu dont have the time to answer this just tell me.
timtower I should let you know I am also new to java itself, so I have no idea what *8 means, other than it seems like something that involves multiplication, what exactly do I do with this?
Creeoer It is math, x coord times 8 is the overworld coord, divide the overworld one by 8 and you have the nether coords
Ok, I'll start it now. It'll be done in about an hour. RedGoldX Here you go. The bypass permission is netherteleporter.bypass Yo can set the levels needed to teleport in the config. You will have to reload it after making changes using /rnethertp. The permission is netherteleporter.reload EDIT by Moderator: merged posts, please use the edit button instead of double posting.
RedGoldX Just wanted to let you know that I at least got the plugin working, I mainly just did this to learn plugins myself, feel free to use dsouzamatt plugin, since he put a reload option and spent the time to make it for you.