OneWayNether

Discussion in 'Archived: Plugin Requests' started by Rokinscom, Nov 28, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    Rokinscom

    Plugin category: Misc

    Suggested name: OneWayNether

    What I want: Factions servers are sometimes limited with Nether access as it gives a potential raid from use a NetherPortal from the Nether to get into peoples bases. Although this is all good and fun it takes away from the Factions experience I am looking for on my server.
    I just want a plugin that teleports you back to spawn when you use a nether portal in the nether dimension.

    Ideas for commands: /own toggle - toggle teleporting back to spawn or going to the portals normal destination.
    I don't need commands or permissions added just an idea.

    Ideas for permissions: own.toggle - allows for use with /own toggle

    When I'd like it by: ASAP
     
  2. Offline

    Assist

    Rokinscom
    Done! Download | Source. I haven't tested it but theoretically it should work (unless I really suck).

    Commands:
    • /onewaynether enable
    • /onewaynether disable
    • /onewaynether toggle
    Permissions:
    • onewaynether.enable
    • onewaynether.disable
    • onewaynether.toggle
    Default configuration:
    Code:
    # True if they should be teleported to spawn when leaving nether through a nether portal
    enabled: true
     
  3. Offline

    drpk

    Assist I looked through the source of the plugin, as I was curious to see how you'd done it, when I found a peculiar item. In your onTeleport method, shouldn't you check the value of the config?
     
  4. Offline

    Assist

    drpk
    Oh woops. You're absolutely correct. I forgot to make the config at first, then I added it and seems like I forgot to use it.

    I can't fix it today, so if you want to/can, feel free to edit the code and compile it :p
     
    drpk likes this.
  5. Offline

    drpk

    Assist likes this.
  6. Offline

    ChipDev

    omg. Have you googled? There is already a plugin with this EXACT NAME
     
  7. Offline

    Assist

    I just realized that my plugin has a few flaws and should not be used until fixed. I forgot to check if they were actually leaving the nether. I'll fix this asap tomorrow.
     
  8. Offline

    Rokinscom

    Yeah I have, the plugin doesn't work past 1.6
     
  9. Offline

    timtower Moderator Moderator

    Server log on that?
     
  10. Offline

    Rokinscom

    I no longer have the log. But it was not working and spammed errors in my console.
     
  11. Offline

    Rokinscom

  12. Offline

    Assist

  13. Offline

    Rokinscom

Thread Status:
Not open for further replies.

Share This Page