Spigot GriefPrevention Expansion 1.6.0

Expansion of GriefPrevention for PlacehodlerAPI

  1. @clip If you could add this to the ecloud pls.... (I will be adding more placeholders..)
     
  2. clip

    Benefactor

    I am almost ready to release ecloud v2 and you will be able to register and upload yourself. should be updated in a few days.
     
  3. clip

    Benefactor

    thank you btw for your contributions to expansions.
     
  4. No problem, and thank you for a new coming update !
     
  5. Add total ClaimBlocks ;)
     
  6. clip

    Benefactor

  7. No I have not. I'm going to do it when I have some time..
     
  8. I uploaded it to the cloud @clip . Is it normal the Verified is still false?
     
  9. clip

    Benefactor

    yes, all expansions uploaded are set to verified:false until we check it and verify it's not malicious. Not saying your expansion may be malicious but this system is in place for anyone who uploads. I added this to make sure all expansions uploaded are safe since they are instantly available to the end users server after verified.
     
    • Like Like x 1
  10. @pixar02 hello, is there a placeholder to see how much claim blocks you got left? thanks
     
  11. %griefprevention_remainingclaims% => The player's remaining claims
     
  12. What is the value that is given when %griefprevention_currentclaim_ownername% is no one?

    I have a custom command that checks the claim owner to make sure that the player has permission to perform the action in that spot, but I want to allow them to do the command outside of all claims as well. Without knowing what the result of that placeholder is when no one has claimed the region, I can't allow my players to perform the action there.
     
  13. It will return "Unclaimed"
    This is how I check if the claim is claimed... and by who..
    Code (Text):
    DataStore DataS = plugin.dataStore;
    Claim claim = DataS.getClaimAt(p.getLocation(), true, null);
                if (claim == null) {
                    return "Unclaimed";
                } else {
                    return String.valueOf(claim.getOwnerName());
                }
     
    • Like Like x 1
  14. Brilliant. Thank you!
     
    • Like Like x 1
  15. Getting an error now on startup. :(

    Code (Text):
    06.02 07:01:47 [Server] ERROR Could not load 'plugins/Expansion-GriefPrevention.jar' in folder 'plugins'
    06.02 07:01:47 [Server] INFO org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
    06.02 07:01:47 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:152) ~[spigot-1.12.2.jar:git-Spigot-9b8bba4-bd30843]
    06.02 07:01:47 [Server] INFO at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [spigot-1.12.2.jar:git-Spigot-9b8bba4-bd30843]
    06.02 07:01:47 [Server] INFO at org.bukkit.craftbukkit.v1_12_R1.CraftServer.loadPlugins(CraftServer.java:305) [spigot-1.12.2.jar:git-Spigot-9b8bba4-bd30843]
    06.02 07:01:47 [Server] INFO at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:205) [spigot-1.12.2.jar:git-Spigot-9b8bba4-bd30843]
    06.02 07:01:47 [Server] INFO at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:545) [spigot-1.12.2.jar:git-Spigot-9b8bba4-bd30843]
    06.02 07:01:47 [Server] INFO at java.lang.Thread.run(Thread.java:748) [?:1.8.0_151]
    06.02 07:01:47 [Server] INFO Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
    06.02 07:01:47 [Server] INFO ... 6 more
    06.02 07:01:47 [Server] INFO Set PluginClassLoader as parallel capable
     
  16. clip

    Benefactor

    The expansion should be in the placeholder API expansion folder not the plugins folder
     
    • Like Like x 1
  17. Bwahahahaha.

    I can't believe I did that. I was on a role last night updating all of my plugins, then I did that. Thanks.
     
    • Like Like x 2