Bukkit Random Teleport with RedProtect/Kingdoms+/WorldGuard/Factions/Towny/GP/WorldBorder etc support) 7.7.0

Randomly teleport you to a safe location (on ground, not on tree nor ocean) Factions supported!!

  1. Does the plugin also work with the "new" FabledKingdoms?
    https://www.spigotmc.org/resources/kingdoms-battle-for-land-might-and-glory.11833/

    I've tried a quick setup and it doesn't seem to work.

    My current config: https://pastebin.com/4UHSMc5J
    I claimed all chunks adjacent to the 0, 0 coordinate (so it would be 16x16) and I'm still landing inside the claims sometimes.

    I tried "Kingdoms" or "Kingdoms+" in the "RegionsPlugin" variable but none worked.
    Anything I missed? I tried with a simple "/rtp <player>" from the console.

    Thanks in advance
    ~Folas
     
  2. for Kingdoms+, my plugin ask Kingdoms plugin about the membership at the location. If player's uuid is included in the members list of the location, where kingdom region is defined, the player can land.
     
  3. Aaaah... so I can't test that alone :D Makes sense, pretty smart.
    Alright, I'll test it with another player :)
     
  4. hi , i have warning ! what can i do for this ?
    [19:40:43] [Server thread/INFO]: Bobbber issued server command: /rtp
    [19:40:44] [Server thread/WARN]: java.lang.NullPointerException
    [19:40:44] [Server thread/WARN]: at com.vk2gpz.randomteleport.a.b.c.s.a(s.java:242)
    [19:40:44] [Server thread/WARN]: at com.vk2gpz.randomteleport.a.b.c.a.a(a.java:533)
    [19:40:44] [Server thread/WARN]: at com.vk2gpz.randomteleport.e.a(e.java:445)
    [19:40:44] [Server thread/WARN]: at com.vk2gpz.randomteleport.e$c.run(e$c.java:337)
    [19:40:44] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_13_R2.scheduler.CraftTask.run(CraftTask.java:81)
    [19:40:44] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_13_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:392)
    [19:40:44] [Server thread/WARN]: at net.minecraft.server.v1_13_R2.MinecraftServer.b(MinecraftServer.java:889)
    [19:40:44] [Server thread/WARN]: at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:417)
    [19:40:44] [Server thread/WARN]: at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:831)
    [19:40:44] [Server thread/WARN]: at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:729)
    [19:40:44] [Server thread/WARN]: at java.lang.Thread.run(Thread.java:748)
    [19:40:44] [Server thread/WARN]: java.lang.NullPointerException
    [19:40:44] [Server thread/WARN]: at com.vk2gpz.randomteleport.a.b.c.s.a(s.java:242)
    [19:40:44] [Server thread/WARN]: at com.vk2gpz.randomteleport.a.b.c.a.a(a.java:533)
    [19:40:44] [Server thread/WARN]: at com.vk2gpz.randomteleport.e.a(e.java:445)
    [19:40:44] [Server thread/WARN]: at com.vk2gpz.randomteleport.e$c.run(e$c.java:337)
    [19:40:44] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_13_R2.scheduler.CraftTask.run(CraftTask.java:81)
    [19:40:44] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_13_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:392)
    [19:40:44] [Server thread/WARN]: at net.minecraft.server.v1_13_R2.MinecraftServer.b(MinecraftServer.java:889)
    [19:40:44] [Server thread/WARN]: at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:417)
    [19:40:44] [Server thread/WARN]: at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:831)
    [19:40:44] [Server thread/WARN]: at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:729)
    [19:40:44] [Server thread/WARN]: at java.lang.Thread.run(Thread.java:748)
     
  5. running CraftBukkit version git-Spigot-f56e2e7-9dc5658 (MC: 1.13.2)
    and
    [19:36:20] [Server thread/INFO]: [RandomTeleport] Enabling RandomTeleport v7.5.0
    [19:36:20] [Server thread/INFO]: [RandomTeleport] using [WorldGuard] for world
    [19:36:20] [Server thread/INFO]: [RandomTeleport] RandomTeleport version 7.5.0 is Enabled
     
  6. I run on Spigot 1.13.2 and don't get any warnings
     
  7. you have the same version ? version git-Spigot-f56e2e7-9dc5658 (MC: 1.13.2)
     
  8. I use the one from spigot 7.5.0 I don't like to compile if I can help it
     
  9. do you have WorldGuard installed on your server? if so what version?
     
  10. is it possible to set radius using sign? now without world border, sign doesn't respect default radius 100 blocks, it will teleport to millions blocks away
     
  11. The latest version has an error
    Code (Java):
    [18:51:37] [Server thread/INFO]: lapinpp issued server command: /rt
    [18:51:37] [Server thread/INFO]: [VKLib] <AreaUtil> registered LegacyFactions
    [18:51:37] [Server thread/INFO]: [VKLib] registring WorldGuard v6
    [18:51:37] [Server thread/INFO]: [VKLib] <AreaUtil> registered WorldGuard
    [18:51:37] [Server thread/WARN]: java.lang.ClassNotFoundException: com.massivecraft.factions.FPlayers
    [18:51:37] [Server thread/WARN]:     at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
    [18:51:37] [Server thread/WARN]:     at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:152)
    [18:51:37] [Server thread/WARN]:     at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:100)
    [18:51:37] [Server thread/WARN]:     at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    [18:51:37] [Server thread/WARN]:     at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    [18:51:37] [Server thread/WARN]:     at java.lang.Class.forName0(Native Method)
    [18:51:37] [Server thread/WARN]:     at java.lang.Class.forName(Class.java:264)
    [18:51:37] [Server thread/WARN]:     at com.vk2gpz.randomteleport.a.d.e.i.a(i.java:116)
    [18:51:37] [Server thread/WARN]:     at com.vk2gpz.randomteleport.a.d.e.i.b(i.java:183)
    [18:51:37] [Server thread/WARN]:     at com.vk2gpz.randomteleport.a.d.e.a.a(a.java:304)
    [18:51:37] [Server thread/WARN]:     at com.vk2gpz.randomteleport.a.d.e.a.e(a.java:277)
    [18:51:37] [Server thread/WARN]:     at com.vk2gpz.randomteleport.e.a(e.java:442)
    [18:51:37] [Server thread/WARN]:     at com.vk2gpz.randomteleport.e$c.run(e$c.java:341)
    [18:51:37] [Server thread/WARN]:     at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:76)
    [18:51:37] [Server thread/WARN]:     at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:361)
    [18:51:37] [Server thread/WARN]:     at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:739)
    [18:51:37] [Server thread/WARN]:     at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406)
    [18:51:37] [Server thread/WARN]:     at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679)
    [18:51:37] [Server thread/WARN]:     at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577)
    [18:51:37] [Server thread/WARN]:     at java.lang.Thread.run(Thread.java:748)
     
  12. well, how did you configure it?
     
  13. Code (YAML):
    DefaultRadius: 100

    # economy related
    # choices of economy system: "Money", "Token" or "Exp"
    Economy
    : "Money"
    Price
    : 1

    # delay til the teleportation is initiated (in seconds)
    TPDelay
    : 0

    Cooldown
    : 300  #in seconds

    EnabledEnvironment
    :
     - NORMAL

    #if you set this option to true, the cooldown will be tracked for each world.
    UseWorldBased
    : false

    # Timeout in seconds before it gives up looking for a safe location to land.
    TimeOut
    : 10

    # a player with randomteleport.sign.use can click the sing to execute /rt w:world
    # a player with randomteleport.sign.create can create the RT sign.
    # 1st line of the RT sign is reserved for [RT]
    # 2nd line of the RT sign is reserved for world id.

    RTSign
    :
      world
    :  #short world id  (incase the world name is long)
        world
    : "world"
        lore
    :
         - "&aTeleport to"
          - "&arandom place"
    #  nether:
    #    world: "world_nether"
    #    lore:
    #      - "&aTeleport to"
    #      - "&arandom place"
    #  end:
    #    world: "world_the_end"
    #    lore:
    #      - "&aTeleport to"
    #      - "&arandom place"

    # you can nominate the min/max boundaries of each world if you do not wish to
    # use the worldborder.
    # if the limits are not specified here, by default, the plugin will use the worldboarder
    WorldLimits
    :
    #  smallworld:
    #    xRadius: 300
    #    zRadius: 200
    #  bigworld:
    #    xRadius: 3000
    #    zRadius: 2000

    #
    # RT will try not to select the blocks listed here as the landing block
    AvoidBlocks
    :
    #  - SAND
    #  - GRAVEL

    #
    # No-Go WorldGuard Region
    AvoidWGRegions
    :
    #  - spawn


    #
    # if this option is true, all player who joined will be teleported to a random location.
    RandomTPOnJoin
    : false
    # this is the world a player wil be randomly teleported when they join.
    JoinTPWorld
    : undefined
    # if this option is true, random tp on join is executed only if a player joined the server
    # for the first time.
    OnlyAtFirstJoin
    : true

    #
    RegionPlugins
    :
      faction
    :
        - WorldGuard
        - WorldBorder
        - LegacyFactions

    # if the destination worlds are not specified as command line argument
    # worlds listed below will be randomly picked to find a safe landing place.
    TargetWorlds
    :
     - world
      - plotworld
     
  14. Could you implement for FabledSkyBlock? They are open-source :)
     
  15. I cannot find it on spigot.
     

Share This Page