[ADMN] UData v0.1 - API for data [1000]

Discussion in 'Inactive/Unsupported Plugins' started by Nijikokun, Jul 28, 2011.

  1. Offline

    Nijikokun

    Superperms, and other things leave the data section out of the permission area. Enter UData it allows for data to be stored in a flat file like permissions, seperate worlds use the world name as the filename.

    Changelog
    * Release

    Version
    0.1?

    Download
    http://mirror.nexua.org/UData/Alpha/1/

    Hooking
    Hook into UData.

    Don't ask how that works ( `ー´)o o(`ー´ )

    Grabbing user Data
    default.yaml:
    Code:
    Nijikokun:
      x: 25.0
      y: 0.0
      z: 21.92
    Java:
    Code:
    Double x = UData.getUser("Nijikokun").getDouble("x");
    Double y = UData.getUser("Nijikokun").getDouble("y");
    Double z = UData.getUser("Nijikokun").getDouble("z");
    
    System.out.println("Nijikokun had: " + x + ", " + y + ", " + z );
    Multiple Worlds

    default.yaml
    Code:
    Nijikokun:
      prefix: &y
    nether.yml
    Code:
    Nijikokun:
      prefix: &s
    Java
    Code:
    System.out.println(UData.getUser("Nijikokun").getValue("prefix", "nether"));
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  2. Offline

    codename_B

    Missing version in the title, changelog yada yada yada - other than that looks fun! Why not use Bukkit services rather than UData for this - let other people emulate this functionality without being as complicated. Also makes it easier for devs to hook into.
     
  3. Offline

    Nijikokun

    Probably will make it a service, but I built it like 23958239 days ago and just released it on here, who uses the forums anymore !?
     
  4. Offline

    Snipes01

    Oh this is nice. Nijikokun it seems you have a lot up your sleeves! I'll check this out later today. I used to use your iChat plugin because Essentials does a silly job of chat colors. : )
     
  5. Offline

    PatrickFreed

    So this basically emulates the Prefix and Suffix values from your Permissions?
     
  6. Offline

    Nijikokun

    Yes, it simulates that section since it was removed in bukkits permission system.
     
  7. Offline

    codename_B

    So how do you set this up for use with permission nodes?
     

Share This Page