[INACTIVE][TP] warp 1.0 - Simple warp Plugin, Multiworld Support [1000]

Discussion in 'Inactive/Unsupported Plugins' started by Benni1000, Aug 13, 2011.

  1. Offline

    Benni1000

    warp: Version: 1.0

    Warp 1.0 is a simple warp plugin with permission support!

    Usage:

    Code:
    To set a warp use:
    warp_create yourwarpname
    or
    warps_create yourwarpname
    
    To teleport to a warp use:
    warp yourwarpname
    or
    warps yourwarpname
    or
    w yourwarpname
    
    To remove a Warp use:
    warp_remove yourwarpname
    or
    warps_remove yourwarpname
    
    To list all warps use:
    warp_list
    or
    warps_list
    
    To get Help use:
    warps_help
    Permission:

    Code:
    Users with this permission node can use the /warp /warps and /w command.
    - warps.warp
    
    Users with this permission node can use the  /warps_remove and /warp_remove command.
    - warps.remove
    
    Users with this permission node can use the /warp_create and /warps_create command
    - warps.create
    
    Users with this permission node can use the /warp_list and /warps_list command
    - warps.list
    Features:
    • Easily add and remove Warps.
    • Permission Support.
    • Multi World Support!
    Downloads:
    Jar: http://benni1000.bplaced.net/download/warp.jar
    Source Code: http://benni1000.bplaced.net/download/src_warp.zip

    Like my plugins?
    Visit my Homepage: http://benni1000.bplaced.net
    Changelog:
    Version 1.0:
    • released
     
  2. Offline

    Plague

    title is missing almost everything it should have
     
  3. Offline

    Benni1000

    Is the title now better?
     
  4. Offline

    Plague

    yes, but the changelog is not here for the post, but for the plugin itself, changed
     
  5. Offline

    XanderTG

    When I try a command, that I do not not have permissions. I do. When I look in the console, it says: [WARNING] PermissionsEx plugin are not found.
     
  6. Offline

    chrcms

    When I restart the server, the warp points disappear ..
     
  7. Offline

    Benni1000

    What permission system do you use?

    What Bukkit version are you running?
    Any Errors while starting?
     
  8. Offline

    chrcms

    No errors, They just disappear CB1000
     
  9. Offline

    XanderTG

    I use Permissions v2.7.4.
     
  10. Offline

    Baummann

    The reason for the warps being deleted after a server restart is that it doesn't have a database (or a not working database).
    Let me code something for you:
    Code:java
    1. //Replace warp with the warp string
    2. File file = new File("plugins/warp/" + warp);
    3. if (!file.exists()) {
    4. try {
    5. file.createNewFile();
    6. } catch (IOException e) {
    7.  
    8. }
    9. }
    10. //Replace warpx with the x axis, warpy with the y axis, warpz with the z axis and world with the warp's world
    11. out.write(world + "," + warpx + "," + warpy + "," + warpz);
    12. out.flush();
    13. out.close();


    And now to read the file:

    Code:java
    1. File file = new File("plugins/warp/" + warp);
    2. double x, y, z;
    3. String inputLine, world;
    4. while ((inputLine = in.readLine()) != null) {
    5. String[] s = inputLine.split(",");
    6. world = s[0];
    7. x = Double.parseDouble(s[1]);
    8. y = Double.parseDouble(s[2]);
    9. z = Double.parseDouble(s[3]);
    10. }
    11. in.close();
    12. Location loc = new Location(world, x, y, z);
    13. //Do whatever you want with loc


    Hope that helped.
     
  11. Offline

    Benni1000

    It has a databse (sqlite).
    Look at the source!
    It's working fine on the server where i am Admin.
    Oh it supports the build in bukkit permissions and permissionsEX.
    I am going to fix this!
     

Share This Page