[WIP][MISC] TimelyPermissive v0.2 - Players need permits. [1.2.5]

Discussion in 'WIP and Development Status' started by TopGear93, Apr 24, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    TopGear93

    TimelyPermissive
    v0.2


    Requirements:
    Vault + any permissions system + economy

    Conversion Chart for allowing permit usage. after time is up permit expires.
    1. 20 Ticks //1 second
    2. 60 seconds //1 minute
    3. 20 * 60 = 1200 //1 minute
    4. 1200 + 1200 = 2400 //2 minutes
    5. 2400 + 1200 = 3600 //3 minutes
    6. 3600 + 1200 = 4800 //4 minutes
    7. 4800 + 1200 = 6000 //5 minutes
    8. 6000 + 1200 = 7200 //6 minutes
    9. 7200 + 1200 = 8400 //7 minutes
    10. 8400 + 1200 = 9600 //8 minutes
    11. 9600 + 1200 = 10800 //9 minutes
    12. 10800 + 1200 = 12000 //10 minutes
    Config: *When Updating plugin to newer versions delete the old config then run new plugin!*
    Show Spoiler

    PHP:
     
    # TimelyPermissives Config
    timely:
      
    moneybooleantrue
      permit
    :
        
    expiration12000
        price
    :
          
    lavabukkit10
          waterbukkit
    10
          placetnt
    15
          killmobs
    20
          killplayers
    50
    lavabukkit
    : []
    waterbukkit: []
    placetnt: []
    killmobs: []
    killplayers: []


    Commands:

    /timely help 1
    Help page 1
    /timely help 2
    Help page 2
    /timely reload
    This reloads the config.
    /killmobs permit
    This makes it so you can buy a permit to kill mobs.
    /killplayers permit
    This makes it so you can buy a permit to kill players.
    /waterbucket permit
    This makes it so you can buy a permit to use water buckets.
    /lavabucket permit
    This makes it so you can buy a permit to use lava buckets.
    /placetnt permit
    This makes it so you can buy a permit to place tnt.


    Permissions:

    timely.reloadconfig
    Permissions node for reloading config
    timely.killmobs.permit
    permissions node to allow buying of killmobs permit
    timely.killplayers.permit
    permissions node to allow buying of killplayers permit
    timely.placetnt.permit
    permissions node to allow buying of placetnt permit
    timely.waterbucket.permit
    permissions node to allow buying of waterbucket permit
    timely.lavabucket.permit
    permissions node to allow buying of lavabucket permit
    timely.bypass.killingplayers
    permissions node to allow bypass of killplayers permit
    timely.bypass.killingmobs
    permissions node to allow bypass of killmobs permit
    timely.bypass.waterbucket
    permissions node to allow bypass of killmobs permit
    timely.bypass.lavabucket
    permissions node to allow bypass of killmobs permit

    Download:
    Alpha v0.1 is buggy! only use at your own digression. tell me if something is broken!
    http://dl.dropbox.com/u/1015938/TimelyPermissives.jar

    Source:
    https://github.com/cCodingBilateral/TimelyPermissives

    Todo:
    • Fix Bucket issue. buckets and world wont update correctly.
    • More Testing.
    • Make ALL strings within the plugin configurable.
    Changelogs:
    vo.1 - Alpha Build.
    • basic build of plugin.
    • Configurable permit prices.
    • Configurable money boolean.
    • Configurable permit expiration.
    vo.2 - Alpha Build.
    • Fixes timer issue
    Issues:

    Plugin wont work? Follow this form.
    • Plugin version your running
      -
    • Server version your running
      -
    • Java version your pc/server is running
      -
    • What did you do that cuased this error? Be specific!
      -
    • Getting a NPE? Any errors popping up in the console? Show me them within a
      -
      Code:
      
      
    if you find any -
    • Spelling issues
    • backward configs
    • bad permission nodes
    • or any other rediculous issues post them here politely.
    Common errors while using my plugins:

    Lists not saving to correct location:
    • Fix - Stop server, delete config, restart server.
    Improper Version of Java.
    Show Spoiler
    Code:
    org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: us/topgear93/orepay/OrePay : Unsupported major.minor version 51.0
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:150)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:287)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:211)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:207)
        at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:183)
        at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:53)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:156)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
    Caused by: java.lang.UnsupportedClassVersionError: us/topgear93/pluginclass/plugin: Unsupported major.minor version 51.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(Unknown Source)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$000(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:139)
        ... 8 more[code][/spoiler]
    [​IMG]
    TimelyPermissives by William is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.​

    vo.1 - Alpha Build.
    • basic build of plugin.
    • Configurable permit prices.
    • Configurable money boolean.
    • Configurable permit expiration.
    Alpha v0.1 is buggy! only use at your own digression. tell me if something is broken!

    current bug list:

    permit expiration timer doesnt work.
    when player is injured it requires them to get a permit.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 25, 2016
  2. Offline

    TopGear93

  3. Offline

    MarsGodofWar

    Sorry i wasnt able to give it a good test this weekend, like i said i would. Between work trying to start a business and trying to find a better job i barley have time to keep my server running let alone implement and test new plugins. I will get it a good test soon though that is a promise.
     
  4. Offline

    maller

    I was looking forward to testing this, but it seems the dropbox link is dead. Could you fix this ?
     
Thread Status:
Not open for further replies.

Share This Page