Bungee - Spigot RTP/Wild Plugin 1.3

Simple RTP plugin that won't kill your players!

  1. _No1InParticular submitted a new resource:

    RTP/Wild Plugin - Simple RTP plugin that won't kill your players!

    Read more about this resource...
  2. I'm getting an error when running this command.

    In the game I get this: An internal error occurred while attempting to perform this command.

    In the console it shows this:
    Code (Text):
    [14:47:14 ERROR]: null
    org.bukkit.command.CommandException: Unhandled exception executing command 'rtp' in plugin RTP v1.0
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[patched_1.14.4.jar:git-Paper-175]
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159) ~[patched_1.14.4.jar:git-Paper-175]
            at org.bukkit.craftbukkit.v1_14_R1.CraftServer.dispatchCommand(CraftServer.java:739) ~[patched_1.14.4.jar:git-Paper-175]
            at net.minecraft.server.v1_14_R1.PlayerConnection.handleCommand(PlayerConnection.java:1800) ~[patched_1.14.4.jar:git-Paper-175]
            at net.minecraft.server.v1_14_R1.PlayerConnection.a(PlayerConnection.java:1608) ~[patched_1.14.4.jar:git-Paper-175]
            at net.minecraft.server.v1_14_R1.PacketPlayInChat.a(PacketPlayInChat.java:47) ~[patched_1.14.4.jar:git-Paper-175]
            at net.minecraft.server.v1_14_R1.PacketPlayInChat.a(PacketPlayInChat.java:5) ~[patched_1.14.4.jar:git-Paper-175]
            at net.minecraft.server.v1_14_R1.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:23) ~[patched_1.14.4.jar:git-Paper-175]
            at net.minecraft.server.v1_14_R1.TickTask.run(SourceFile:18) ~[patched_1.14.4.jar:git-Paper-175]
            at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136) ~[patched_1.14.4.jar:git-Paper-175]
            at net.minecraft.server.v1_14_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[patched_1.14.4.jar:git-Paper-175]
            at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109) ~[patched_1.14.4.jar:git-Paper-175]
            at net.minecraft.server.v1_14_R1.MinecraftServer.aX(MinecraftServer.java:1013) ~[patched_1.14.4.jar:git-Paper-175]
            at net.minecraft.server.v1_14_R1.MinecraftServer.executeNext(MinecraftServer.java:1006) ~[patched_1.14.4.jar:git-Paper-175]
            at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:119) ~[patched_1.14.4.jar:git-Paper-175]
            at net.minecraft.server.v1_14_R1.MinecraftServer.sleepForTick(MinecraftServer.java:990) ~[patched_1.14.4.jar:git-Paper-175]
            at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:923) ~[patched_1.14.4.jar:git-Paper-175]
            at java.lang.Thread.run(Thread.java:835) [?:?]
    Caused by: java.lang.IllegalArgumentException: bound must be positive
            at java.util.Random.nextInt(Random.java:388) ~[?:?]
            at com.no1inparticular.rtp.Main.getRandomCoords(Main.java:67) ~[?:?]
            at com.no1inparticular.rtp.Main.tryLoc(Main.java:81) ~[?:?]
            at com.no1inparticular.rtp.Main.onCommand(Main.java:138) ~[?:?]
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[patched_1.14.4.jar:git-Paper-175]
            ... 17 more
  3. Hi there, can you tell me what your limit values are in the config?

    Edit: Max needs to be more than 0 and higher than min, incase that is the issue
    #3 _No1InParticular, Aug 28, 2019
    Last edited: Aug 28, 2019
  4. The only thing I changed was the enabled-worlds name.

    Code (Text):
      cooldown: 60
      max-attempts: 10
      seconds-between-attempts: 5
          max: 10000
          min: -10000
          max: 10000
          min: -10000
    force-world: false
    forced-world: world
    - Survival
      cooldown: '&cYou can only do this command every 60 seconds.'
      send-attempt-message: false
      trying-coords: '&aAttempting a location.'
      send-trying-again-message: false
      trying-again-in: '&aWill try again in 5 seconds.'
      teleported: '&aTeleported.'
      not-allowed-in-this-world: '&cYou can''t do this in this world.'
      max-attempts: '&cCould not find a location, please try again.'
      no-permission: '&cYou do not have permission for this.'
    • Informative Informative x 1
  5. I believe its becuase you haven't set values for that world under limits, it has them for the world called world so you should just need to change that
  6. Oops! That was totally it! Forgot that world in the coords needed to be the world NAME that matched below.

    Working great now.

    Could use a reload command so a restart isn't needed. :)
  7. It has been added :)
    If there is anything else you would like, let me know. The new version should be up.
  8. hey i have suggestions to help make this plug better if you dont mind!
    or if you wanna share source on github to allow community updates <3

    should add:
    - admin cooldown bypass
    - action bar or chat message to show coords player tp'd too