Vaults for players

Discussion in 'Archived: Plugin Requests' started by ThePluginMaker, Jul 3, 2014.

  1. Offline

    EddieFriday

    izarooni one problem you plugin vault has the same name with Vault. Will that create an error?
     
  2. Offline

    ThePluginMaker

    EddieFriday
    Just edit the .jar with winrar, then edit the plugin.yml and change the name to something different.
     
    EddieFriday likes this.
  3. Offline

    EddieFriday

  4. Offline

    izarooni

    ThePluginMaker
    <Edit by Moderator: Redacted mediafire url>
    I don't want to sound lazy but, i'm too lazy to turn it in to slots. I'm assuming you'd want permissions for a certain amount of slots? Because that's what the rows do.
     
    Last edited by a moderator: Nov 2, 2016
  5. Offline

    ThePluginMaker

    izarooni
    Thank you :)

    izarooni
    i'm getting an error on:
    Code:java
    1. Collection<? extends Player> players = Bukkit.getOnlinePlayers();

    Bukkit.getOnlinePlayers() for:
    Type mismatch: cannot convert from Player[] to Collection<? extends Player>

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
  6. Offline

    izarooni

    ThePluginMaker
    change Collection<? extends Player> to Player[]
    Not that hard. The message it gave you pretty much is the answer
     
  7. Offline

    ThePluginMaker

    izarooni
    Code:java
    1. Player[] players = Bukkit.getOnlinePlayers();
    2. if (!players.isEmpty()) {


    Tells me to change "if (!players.isEmpty())" to "if (!players.length) {"
    after i do that "if (!players.length) {" is giving me this error: he operator ! is undefined for the argument type(s) int
     
  8. Offline

    izarooni

    Change to
    Code:java
    1. if (players.length > 0) {
     
  9. Offline

    ThePluginMaker

  10. Offline

    sky8the2flies

    Finished the plugin because I thought it was interesting and couldn't wait till tomorrow.
    <Edit by Moderator: Redacted mediafire url>
    Permissions:
    - vault.0
    - vault.1
    - vault.2 (etc.. Each number is a new 'slot')
    Commands:
    - /vault
    alias: /v (Opens your Vault inventory)
     
    Last edited by a moderator: Nov 2, 2016
  11. Offline

    Harrison015

    [quote uid=90818067 name="sky8the2flies" post=2646268]Finished the plugin because I thought it was interesting and couldn't wait till tomorrow.
    <Edit by Moderator: Redacted mediafire url>
    Permissions:
    - vault.0
    - vault.1
    - vault.2 (etc.. Each number is a new 'slot')
    Commands:
    - /vault
    alias: /v (Opens your Vault inventory)[/quote]

    Nice! It's working well :)
     
    Last edited by a moderator: Nov 2, 2016
    ThePluginMaker likes this.
  12. Offline

    sky8the2flies

    ThePluginMaker Harrison015 I did find a bug to the plugin, it was only saving the first 27 inventory spaces. Here is the updated fix to it: <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Nov 2, 2016

Share This Page