[INACTIVE][TP] MyWarp v2.0.1 - native PermissionsEx support - no superperms yet [1337]

Discussion in 'Inactive/Unsupported Plugins' started by flames, Apr 15, 2011.

  1. Offline

    flames

    MyWarp:
    Version: 2.0dev
    Download (JAR / ZIP)
    Source code

    MyWarp is now in development by SpathiZilla, please see here

    MyWarp was made by Taylor Kelly (tkelly), all credits go to him! I forked MyWarp and will provide updates in future, or until tkelly is back. There are no changes in usage or functionality. Just the same commands, same permission nodes and same features. Original description:


    ...is Basic
    Many server admins only want the very basics. MyWarp delivers on that, and still gives the speed and reliability of using a SQLite database.

    By only giving your users permission to mywarp.warp.basic.*, they will only be able to use the very basic commands.


    ...is Social
    However, sometimes your users will demand more. They'll want to make their warps private, invite only specific people to their warps, even give their warp to someone else. MyWarp can do that too.

    Give your users mywarp.warp.soc.*, and they'll be able to do all of that.


    ...is Intelligent
    Sometimes, warps can be long and hard to remember. This is where MyWarp's auto-complete abilities come into play. It tries to find the most applicable match, and sends you there. It only considers warps you have access to, and will not send you somewhere unless it knows it's correct.

    A few examples:
    There are warps: {"Mob Spawner", "Farm", "farm", "tkelly's house", "joe's house"}
    tkelly has access to: {"Mob Spawner", "Farm" "tkelly's house"}
    joe has access to: {"Mob Spawner", "Farm", "farm", "joe's house"}

    No matter who uses /warp spawn, they will be sent to "Mob Spawner"
    If tkelly uses /warp house, he'll be sent to "tkelly's house"
    If joe uses /warp house, he'll be sent to "joe's house"
    If tkelly uses /warp farm or /warp arm, he'll be sent to "Farm"
    If joe uses /warp farm, he'll be sent to "farm"
    But if joe uses /warp arm, it equally matches both "Farm" and "farm", so will send him to neither.


    ...is Sign-full
    Physical interactions with the world is what Minecraft is all about. That's why signs can be used to replace many of the basic commands. For now, you can have a sign warp you to one of your current warps (using the auto-complete). Feel free to suggest more things, and I'll build that in.

    In order to build a warping sign, create a sign with two lines of text (it doesn't matter what specific lines).

    If you don't use the basic permission-set, give your players following nodes:

    ...is Guiding
    Want to make your users work to get to their points of interest? Rather than giving them /warp permission, just give them (mywarp.warp.basic.compass) permission. This will let them /warp point <name> to a given warp, and that'll orient their compass to that warp, allowing them to use their own two legs to get there.


    ...is Restricting
    In addition to the compass restrictions, you can also limit the number of public and private warps users can make. You can find and change these settings in MyWarp.settings.

    Until Bukkit's permissions and groups get fleshed out, this is a global number. However, with another setting in MyWarp.settings, you can allow admins to go around this limit.


    ...is Helpful
    As an server administrator, warps can easily be abused. MyWarp gives you access to be able to visit and modify all the warps.



    Changelog:
    Version 2.0dev
    • MySQL support
    • importing warps from warps.db to mysql
    • permissions 3.x
    • removed extremely old artifacts (import of hmod warps)
    • tested and works on CB928
    Version 1.10.7
    • added native support for PermissionsEx
    • fixed namespace
    Version 1.10.6
    • updated for CB786-793
    • updated to Help 3.0 ( not interesting for you until you compile from Lycano's fork on github :p )
    Version 1.10.5c
    • fixed the "Could not pass event PLAYER_INTERACT to MyWarp" error
    Version 1.10.5b
    • updated for CraftBukkit RB #677 (also tested with CB #678)
    • Permissions 2.5.5 or higher (tested with 2.6 and 2.7)
    • added GroupManager support
    • changed update URL where MyWarp downloads sqlite libraries
     
    kahlilnc, Mtihc, Charant and 5 others like this.
  2. Offline

    khamseen_air

    Set loadChunks = true in the mywarp setting file.
     
  3. Offline

    TheDeejay

    Great plugin :) Just wondering, are there any plans to make possible iConomy costs or cooldown / warmup timers for the warps in the future?
     
  4. Offline

    Specops343

    Has anyone figured out why /warp help is returning an empty list? or any of the other problems?

     
  5. Offline

    kuyan

    If you're using a dev build of CommandBook, this happens. I think CommandBook is getting its own warp system.

    By the way, is there any ETA on native PermissionsBukkit support?
     
  6. Offline

    Arton

    Dos MyWarp Works with PermissionsEx ?
     
  7. Offline

    Noctis Akatsuki

    For some reason, whenever I use the command /warp help, it just shows a empty list. It doesnt give out any message when I try to use any of the other commands aswell(/warp set <blabla> etc), only shows to the /warp help.

    I get no error message in console, and I have uninstalled commandbook as mentioned above!
     
  8. Offline

    kuyan

    What permissions system are you using?
     
  9. Offline

    Noctis Akatsuki

    Using permissionsbukkit, with the superpermission thingy. Thought this mod was support it.
     
  10. Offline

    kuyan

    I don't believe so; you need to add a 'superpermbridge.' in front of each permission node you specify, like so:
    Code:
    superpermbridge.myhome.admin
     
  11. Offline

    fragger505

    Having a problem connecting to MySQL.

    Here are the commands I used to create the username/database.
    Show Spoiler
    Code:
    $ mysql -u root -p
    mysql> CREATE DATABASE mywarpdb;
    mysql> CREATE USER 'mywarp'@'%' IDENTIFIED BY 'password';
    mysql> GRANT ALL PRIVILEGES ON mywarp.* TO 'mywarpdb'@'%';
    mysql> quit


    Here is my current config file.
    Show Spoiler

    maxPublic = 0 #Maximum number of public warps any player can make
    maxPrivate = 0 #Maximum number of private warps any player can make
    mySQLuname = mywarp #MySQL Username (only if using MySQL)
    usemySQL = true #MySQL usage -- true = use MySQL database / false = use SQLite
    adminPrivateWarps = true #Whether or not admins can see private warps in their list
    mySQLconn = jdbc:mysql://localhost:3306/mywarpdb #MySQL Connection (only if using MySQL)
    mySQLpass = password #MySQL Password (only if using MySQL)
    loadChunks = false #Force sending of the chunk which people teleport to - default: false
    adminsObeyLimits = false #Whether or not admins can disobey warp limits


    And here is my error message.
    Show Spoiler
    Code:
    00:00:55 [SEVERE] [MYWARP] SQL exception on initialize
    java.sql.SQLException: Access denied for user 'mywarp'@'localhost' (using passwo
    rd: YES)
            at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1073)
            at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593)
            at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525)
            at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:931)
            at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:4031)
            at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1296)
            at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2338)
            at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2
    371)
            at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2163)
            at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:794)
            at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
    rce)
            at java.lang.reflect.Constructor.newInstance(Unknown Source)
            at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
            at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:378)
            at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java
    :305)
            at java.sql.DriverManager.getConnection(Unknown Source)
            at java.sql.DriverManager.getConnection(Unknown Source)
            at me.taylorkelly.mywarp.ConnectionManager.initialize(ConnectionManager.
    java:15)
            at me.taylorkelly.mywarp.MyWarp.sqlCheck(MyWarp.java:84)
            at me.taylorkelly.mywarp.MyWarp.onEnable(MyWarp.java:46)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:878)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:272)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:162)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:146
    )
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    00:00:55 [SEVERE] [MYWARP] Could not establish SQL connection. Disabling MyWarp
    


    >Of course I replace my password with 'password' for my own reasons. However it does have a ' # ' sign in it if that would cause any hiccups.
    Thanks for the help in advance! ^^
     
  12. Offline

    KrimsonEagl

    Is there going to be support for the Essentials /back command? Or a similar command that comes with MyWarp?
     
  13. Offline

    charlie k-j

    :(
    Code:
    17:58:09 [SEVERE] [MYWARP] SQL exception on initialize
    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link fai
    lure
    
    The last packet sent successfully to the server was 0 milliseconds ago. The driv
    er has not received any packets from the server.
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
    rce)
            at java.lang.reflect.Constructor.newInstance(Unknown Source)
            at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
            at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1
    116)
            at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:343)
            at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2334)
            at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2
    371)
            at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2163)
            at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:794)
            at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
    rce)
            at java.lang.reflect.Constructor.newInstance(Unknown Source)
            at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
            at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:378)
            at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java
    :305)
            at java.sql.DriverManager.getConnection(Unknown Source)
            at java.sql.DriverManager.getConnection(Unknown Source)
            at me.taylorkelly.mywarp.ConnectionManager.initialize(ConnectionManager.
    java:15)
            at me.taylorkelly.mywarp.MyWarp.sqlCheck(MyWarp.java:84)
            at me.taylorkelly.mywarp.MyWarp.onEnable(MyWarp.java:46)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:885)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:278)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:178)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:161
    )
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:286)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:273)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:149)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:337)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.net.ConnectException: Connection refused: connect
            at java.net.PlainSocketImpl.socketConnect(Native Method)
            at java.net.PlainSocketImpl.doConnect(Unknown Source)
            at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
            at java.net.PlainSocketImpl.connect(Unknown Source)
            at java.net.SocksSocketImpl.connect(Unknown Source)
            at java.net.Socket.connect(Unknown Source)
            at java.net.Socket.connect(Unknown Source)
            at java.net.Socket.<init>(Unknown Source)
            at java.net.Socket.<init>(Unknown Source)
            at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.ja
    va:254)
            at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:292)
            ... 27 more
    17:58:09 [SEVERE] [MYWARP] Could not establish SQL connection. Disabling MyWarp
    Other plugins installed:
    Backup
    PressurePort
    BookWorm
    CommandBook
    CommandSigns
    FalseBook
    HeroicDeath
    PaintingSwitch
    Spout
    VanishNoPickup
    VoxelSniper
    WorldEdit
    WorldGuard
    PlugMan
    OpenInv
    SignColours
     
  14. Offline

    kuyan

    If you're using MySQL, make sure that your database settings are correct.
     
  15. Offline

    charlie k-j

    I don't even use MySQL :/ Other plugins that utilize it work it's just MyWarp :S
     
  16. Offline

    khamseen_air

    Do you have 'usemySQL = false' because it does look like it's trying to access a mySQL database and failing.
     
  17. Offline

    charlie k-j

    Derp, yes thankyou it was as simple as checking the setting/config file -.-' Sorry about that :p
     
  18. Offline

    Geertje123

    I think I have the most unfix-able bug ever.
    when I use the commands like /warp, /warp list, /warp create etc etc etc, Nothing happens. NO errors, the terminal doesn't even show anything!!

    So here is what happend:
    I was using the old MyWarp from tkelly -> I updated craftbukkit to 1060 -> Then MyWarp showed this error (same for MyHome!):
    Code:
    2011-08-29 20:04:12 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'warp' in plugin MyWarp v1.10.3
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:352)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:737)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:701)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:694)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:462)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:372)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NoSuchMethodError: org.bukkit.entity.Player.teleportTo(Lorg/bukkit/Location;)V
        at me.taylorkelly.mywarp.Warp.warp(Warp.java:136)
        at me.taylorkelly.mywarp.WarpList.warpTo(WarpList.java:111)
        at me.taylorkelly.mywarp.MyWarp.onCommand(MyWarp.java:428)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    So I downloaded this new version, I updated the config file and the java file.

    I am using CB1060, Latest ItemCraft, Latest ModloaderMP.
    I haven't checked MyHome but I guess it is the same problem.

    Help PLZ!

    - Geertje123
     
  19. Offline

    khamseen_air

    Wowsers, can't believe you still had the old version running.

    First off, does it load up correctly? As in, does the server log record it being activated without any errors during the server boot?

    Secondly, you say that it says nothing in the console... not even an invalid command warning, or a you don't have permission etc?

    Also, you shouldn't really say that MyHome would be the same if you've not tried it, guesstimating doesn't help bug tracking.
     
  20. Offline

    Geertje123

    It does not start up correctly I see now. Here is the code:

    Code:
    2011-08-30 16:25:34 [SEVERE] [MYWARP] SQL exception on initialize
    java.sql.SQLException: invalid database address: jdbc:mysql://localhost:3306/database
        at org.sqlite.JDBC.createConnection(JDBC.java:74)
        at org.sqlite.JDBC.connect(JDBC.java:64)
        at java.sql.DriverManager.getConnection(Unknown Source)
        at java.sql.DriverManager.getConnection(Unknown Source)
        at me.taylorkelly.mywarp.ConnectionManager.initialize(ConnectionManager.java:15)
        at me.taylorkelly.mywarp.MyWarp.sqlCheck(MyWarp.java:84)
        at me.taylorkelly.mywarp.MyWarp.onEnable(MyWarp.java:46)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:885)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:178)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:161)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:292)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:279)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:156)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:343)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-08-30 16:25:34 [SEVERE] [MYWARP] Could not establish SQL connection. Disabling MyWarp
     
  21. Offline

    khamseen_air

    Are you using mySQL? If so make sure your details for it are correct, if not then set usemySQL = false in the settings file. The first line of the error states it's failing to initialise connection to the mySQL database and without somewhere to store the data it deactivates.
     
  22. Offline

    Geertje123

    Repaired! Thank you!
     
  23. Offline

    khamseen_air

    You're welcome. It appears to default to mySQL now, which is pretty frustrating.
     
  24. Offline

    LeetPowerCraft

    Are you planning to add this to BukkitDev?
     
  25. Offline

    PopeXIII

    I like this plugin works great no probs. But for one general addition to the plugin would possibly to the ability to put the sign behind 1 block and be able to use the sign through 1 block, I have a spawn area and I wanted to force people to read the /rules file prior to knowing they can right click the block below to use the warp :D I would awsomely appreciate it, or just a thread command if at all possible to add to the files. Either or THANK YOU AWESOMELY MUCH!
     
  26. Offline

    fragger505

    Request to support special characters for MySQL passwords.
     
  27. Offline

    khamseen_air

    I second this request, I'd love to be able to set up transporter style areas using warp signs but have them hidden like under a block or something and people click the block to transport. Kind of the way a 'hidden switch' works in Falsebook but for warps.
     
  28. Offline

    FearFree

    I just (today) decided to change over from using DefaultCommands to Essentials. This was fueled by 2 things, first being that DC no longer is supporting Permissions, and second because I wanted to restrict the number of warps people could make.

    My questions is, could you add functionality to convert the warps.yml from DefaultCommands into the SQLite db on MyWarps?

    Thanks.
     
  29. Offline

    Slyvr

    How come every warp I go to is the only spot around that is a black glitched out world hole?
     
  30. Offline

    khamseen_air

    Do you have 'loadChunks= true' set in the config file?
     
  31. Offline

    TangoFox4

    What permissions does work?
    Superpermbridge seems not to work..
     

Share This Page