[MISC] TrialPlay - v0.0.2 - Friends can be sent trials to try the server [1.2.5-R4.0]

Discussion in 'Inactive/Unsupported Plugins' started by TopGear93, Jun 19, 2012.

  1. Offline



    TrialPlay is a sequel to my previous server expanding plugin [ReferGift]. TrialPlay was built to help populate servers by using a timed trial.

    TrialPlay was developed for whitelisted servers. TrialPlay works by allowing a current whitelisted or permanant player to use a command that allows the player to add thier friend to a list. This list will allow only that player into the server. Once the player joins then a timer kicks in and gives a default time of 10 minutes for play time. Within that time the player can either quit,white-list their self, or be kicked at the end of the trial. Once the trial ends without them white-listing themselves, a lock will kick in and make it so the player cannot join again. The player cannot be sent a trial again. They must be whitelisted by a mod or admin by signing up on the server's forums or website.

    TrialPlay Mechanics: * = Future Builds
    There are databases that each player will get only if they have become a full white-listed member. The databases will hold info about how many trials sent, who they sent them to, *how many times they have been diciplined*. The discipline system is for when the trial receiver gets into trouble then the trial sender will also get into trouble. If the discipline number reaches 3 then both will either be banned or kicked. The discipline level must be hit within the trial time. If the trial is over then both are safe. *There are rewards that the trial sender will receive like with ReferGift.*. There is a metric system. Its mostly for my well being but ill share the link location. *There is a full message logging system that makes bug fixing easier.*

    Default Config:
    # TrialPlay Config
      title: TrialPlay
        reloaded: Configs reloaded!
          friend1: 'Successfully added '
          friend2: ' to demo this server!'
        friend1: Remember now, your friend is under your responsibility! If he does something thats against the rules then you will be held responsible!
        self: Thats a negative captain. You cant alow yourself to demo.
        playerinbound: ' has been sent a trial thanks to'
        hasone: has already been sent a trial.
        locker: Woa cool it down. Wait a few minutes till sending a trial!
        lockertimer: 1200
        added1: ' you have been added to the server''s whitelist.'
        added2: In 10 seconds you will be kicked. Log back in to become a full member!
        already: No you cant do that. You have already been whitelisted!
        'false': You havent been whitelisted yet!
          halfway: ' till your trial is over'
          msg1: 'You can demo this server for '
          msg2: If you like the server and want to apply then use
        kickmsg: You must rejoin to become a member!
        out: Time ran out. Go apply for full membership
        wl: 200
        timestring: 10 minutes.
          timestring: 5 minutes.
        halftrial: 6000
        trial: 12000
        config: No permissions to reload config!
        version: No permissions to check version!
        demo: No permissions to demo a friend on this server!
        wl: No permissions to whitelist yourself!
          version: /tp version
          reload: /tp reload
    friend: []
    locker: []
    Friend = Allows the trial receiver to join the server.
    Locker = Temperary locking system for sending trials. There is a 1 minute cool down. Its configurable.

    CMD - /wl
    Permission - TrialPlay.self.whitelist
    Description - whitelisting command.

    CMD - /trial add <player>
    Permission - TrialPlay.demo.friend
    Description - allows a current whitelisted player to send a trial out.

    CMD - /tplay version
    Permission - TrialPlay.version
    Description - gets version of plugin.

    CMD - /tplay reload
    Permission - TrialPlay.config.reload
    Description - reloads config.

    • All the red messages within the mechanics paragraph. More things to come.




    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 caused this error? Be specific!
    • Are you renting a server or are you dedicated? yes or no
    • Provide photo evidence or possible video evidence.
    • Getting a NPE? Any errors popping up in the console? Show me them within a
    if you find any -
    • Spelling issues
    • backward configs
    • bad permission nodes
    • or any other ridiculous 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
    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


    v0.0.1 - Released
    • Rebuilt twice from development issues and general engine problems
    • command for version check, config reload, sending trials.
    • player databases. each player has their own file. dont edit them!
    • Main config. all msgs are configurable. The trial is configurable. Default is 10 minutes.
    v0.0.2 - Small fix
    • Fixes accidental override of the Teleport command "tp"
    • Adds cooldown for sending trials
  2. Offline


    Curious as to why you use Java 7.
    ReferGift by William Bakunis is licensed
    Also curious as to why you include your own version command.
    Otherwise approved.
  3. Offline


    Lol sorry about that. I didnt feel like retyping it so i went a copied the license post from my ReferGift post.

    Im not sure either. My eclipse is having me work with java 7. When i force eclipse to work with 6 then my computer runs into several small version errors.

    This makes it easier to see what version the player is running. Also i dont always update the plugin.yml to the latest version. Its better to have two sources of info then one.

    Thanks for approving this.
  4. Offline


    Cool Plugin, can you add Custom kick message? Instead of: "You are white-listed on this server"
  5. Offline


    uhm, you override the /tp command?
  6. Offline


    yep it looks like i did. Ill send a quick fix out.

    Its setup to be custom.

    the kick message node is "TrialPlay.timer.out" - "Time ran out. Go apply for full membership"

    the kick login message is "TrialPlay.wl.false" - "You havent been whitelisted yet!"

    i added the defualt config to the OP

    v0.0.2 - Small fix
    • Fixes accidental override of the Teleport command "tp"
    • Adds cooldown for sending trials

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


    Ok beautiful, Thanks for the quick response Respect!
    TopGear93 likes this.
  8. Offline


    Quite sad to see that not many people are using TrialPlay. I might continue working on this if i see more users.

Share This Page