Need rewards line translated #513

  • Replied
  • Task
Assigned to _ForgeUser8455416
  • TrivalentClanMizar created this issue Sep 12, 2014

    This is in my rewards file after I entered four commands to add rewards, none of which seem to work, before I go further could you translate these two lines and then I can compare with what I intended.

       - FS,A,T,PT,null,default,all,0,1,0,0,0,1,-1,LP,1,points,S82POINTS1points
       - S,A,T,A,null,default,all,2,0,0,0,0,0,-1,LP,-1,points,S83POINTS-1points

  • TrivalentClanMizar added the tags New Task Sep 12, 2014
  • _ForgeUser8455416 posted a comment Sep 13, 2014

    Run the command: /ontime reward info all

    and you will see the following output, which will tell you the definition of the reward.

    [11:28:51] [Server thread/INFO]: Reward #1
    [11:28:51] [Server thread/INFO]: (#1) 1 Loyalty Points
    [11:28:51] [Server thread/INFO]: (#1) Flags: Referred by +General 
    [11:28:51] [Server thread/INFO]: (#1) Time:  1  Hr  
    [11:28:51] [Server thread/INFO]: (#1) Scope: Total     Reference: Point
    [11:28:51] [Server thread/INFO]: (#1) Tag: S82POINTS1points
    [11:28:51] [Server thread/INFO]: Reward #2
    [11:28:51] [Server thread/INFO]: (#2) -1 Loyalty Points
    [11:28:51] [Server thread/INFO]: (#2) Flags: Single +General 
    [11:28:51] [Server thread/INFO]: (#2) Time:   2  Day  
    [11:28:51] [Server thread/INFO]: (#2) Scope: Total     Reference: Absence
    [11:28:51] [Server thread/INFO]: (#2) Tag: S83POINTS-1points

    The first reward will be 'started' when a player runs the 'referred by' command. The player that runs the command will have in their reward queue this reward until they have played for 1 hour of total play time. Once they have accumulated an hour of play, a reward will then be scheduled to the player named as the referring (source) player. That player will then actually receive the reward upon their next login, or immediately if they are online. The source player will see nothing in their reward queue until after the referred (target) player has played the 1hr minimum set.

    The second reward will be issued to any player that has not been seen on the server for the last two days. Around midnight (local time to the server) the plugin will look for players that meet this criteria and will issue the reward. These players will lose one point each and every day they are away for longer than 2 days in a row.

  • TrivalentClanMizar posted a comment Sep 13, 2014

    Digging through my logs these are the commands I issued which gave those rewards (I misunderstood something, maybe you could flag what I did wrong) plus the things OnTime detected:

    [15:28:31] [Server thread/INFO]: [OnTime] Loading OnTime v3.13.4
    [15:28:42] [Server thread/INFO]: [OnTime] Enabling OnTime v3.13.4
    [15:28:42] [Server thread/INFO]: [ONTIME] Points system enabled.
    [15:28:42] [Server thread/INFO]: [ONTIME] /plugin/ontime/config.yml loaded.
    [15:28:42] [Server thread/INFO]: [OnTime] Verifed that plugins/OnTime/OnTimeLog.txt exists.
    [15:28:42] [Server thread/INFO]: [OnTime] Loading from output.yaml
    [15:28:42] [Server thread/INFO]: [ONTIME] MySQL Enabled.  Attempting connection to database: mcph******
    [15:28:43] [Server thread/INFO]: [ONTIME] Created ontime-online table in MySQL Database.
    [15:28:43] [Server thread/INFO]: [ONTIME] MySQL connection to database: mcph****** SUCCESSFUL
    [15:28:43] [Server thread/INFO]: [OnTime] Data file auto-saves schdeduled.
    [15:28:43] [Server thread/INFO]: [OnTime] AFK Checking Enabled.
    [15:28:46] [Server thread/INFO]: [OnTime] Economy plugin (HyperConomy) latched.
    [15:28:46] [Server thread/INFO]: [OnTime] Permissions plugin (PermissionsBukkit) latched.
    [15:28:46] [Server thread/INFO]: [OnTime] OnSign Plugin Located
    [15:28:46] [Server thread/INFO]: [OnTime] Loading from messages.yml
    [15:28:46] [Server thread/INFO]: [OnTime] Loading from rewards.yaml
    [15:28:46] [Server thread/INFO]: [ONTIME] Groups supported by PermissionsBukkit:[default, royal, mod, admin, owner, rascal,...]
    [15:28:46] [Server thread/INFO]: [OnTime] Rewards enabled, but no rewards defined.
    [15:28:46] [Server thread/INFO]: [OnTime] Rewards: No groups defined.
    [15:28:46] [Server thread/INFO]: [OnTime] Rewards: No kits defined.
    [15:28:46] [Server thread/INFO]: [OnTime] Rewards: Worlds defined: [global]
    [15:28:46] [Server thread/INFO]: [OnTime] Rewards: No commands defined.
    [15:28:46] [Server thread/INFO]: [OnTime] No Individual Rewards to process.
    [16:07:12] [Server thread/INFO]: mizar1 issued server command: /ontime rewards add point 1 1h
    [16:08:29] [Server thread/INFO]: mizar1 issued server command: /ontime rewards perp 1 1h
    [16:11:05] [Server thread/INFO]: mizar1 issued server command: /ontime rewards notifier 1

    *** this was probably incorrect *** right?

    [16:11:48] [Server thread/INFO]: mizar1 issued server command: /ontime rewards refer 1

    *** also incorrect ? ***

    [16:12:10] [Server thread/INFO]: mizar1 issued server command: /ontime rewards add points -1 2d absence

    I can see what I likely did wrong with votes (stacking multiple things together).   

    Any way to flag this mistake?

    Edited Sep 13, 2014
  • _ForgeUser8455416 posted a comment Sep 13, 2014

    @Mizar6: Go

    Yes, it looks like you are trying to define one reward as too many things. I guess I should note in the rewards instructions, is that each reward can only truly be used for one purpose. So if you want to have a player rewarded with "1 point" for referring players,"1 point" for each vote cast, and 1 point for each hour played, then you must define three different rewards (each for one point), but specify that one is a referral reward, one is a vote reward, and the other is an hourly reward.

    Ex: 1 point for 1 referral (issued after player plays for one hour): (I'm going to use tags instead of rewardIDs, because it makes it easier to understand the instructions)

    /ontime rewards add 1 point 1h tag=ref-point

    /ontime rewards refer ref-point

    Ex: 1 point for 1 vote:

    /ontime rewards add 1 point tag=vote-point

    /ontime rewards votifier tag=vote-point

    Ex: 1 point per hour played

    /ontime rewards add 1 point 1h tag=hour-point

    /ontime rewards perp hour-point 1h

    If you then execute the command "/ontime rewards info all", you will see three different rewards for one point each, but each issues for different events.

    It would be hard for the plugin to detect that you are doing something wrong in your commands, because there is no error in what you entered. (Although the plugin should have provided a better error message when you used the term 'notifier', which is not a valid command word.)

    All I could possibly do is that after a admin already defines a reward as a 'votifier' reward, and then changes it to a 'referral' reward, I could issue a warning message that "Your reward #1 will no longer be issued upon votifier events", or something like that.

    Does this answer you questions? (I am somewhat guessing at what you are trying to do, so not sure if I have yet to get to the heart of your issue.)

    BR, Edge

  • _ForgeUser8455416 removed a tag New Sep 13, 2014
  • _ForgeUser8455416 added a tag Waiting Sep 13, 2014
  • TrivalentClanMizar posted a comment Sep 13, 2014

    Yes, I haven't studied far enough to see the tag.  If you could add some of this to the web pages that would help everyone else.  I missed the typing error.  I got everything I understand so far working.  I have another issue in my next ticket, maybe easy maybe not.

  • TrivalentClanMizar removed a tag Waiting Sep 13, 2014
  • TrivalentClanMizar added a tag Replied Sep 13, 2014

To post a comment, please login or register a new account.