Thread: Motivote causes server.java errors

Results 1 to 2 of 2
  1. #1 Motivote causes server.java errors 
    Artix Owner
    Replenish's Avatar
    Join Date
    Jun 2015
    Posts
    162
    Thanks given
    9
    Thanks received
    25
    Rep Power
    43
    Im trying to put motivote in my ardi base however when putting the motivote handler into my server.java (where everything is intialized) it either isnt recognized and eclipse tells me to remove the "new" tokens from the code unless i bracket it off (}) but this causes my stillgraphicsmanager to have an error on the semi colon saying to remove the token which as you can guess cause s a chain reaction of errors? Any help? this is what it looks like
    R-S Admin Response  Code
    /**
    * Calls to manage the players on the server.
    */
    public static PlayerManager playerManager = null;
    private static StillGraphicsManager stillGraphicsManager = null;
    new Motivote(new RewardHandler(), "http://elysium-rs.com/vote", "Secretshhhhhhhhhhh").start();
    }
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    May 2010
    Posts
    87
    Thanks given
    22
    Thanks received
    4
    Rep Power
    10
    The code you shared doesn't make any sense.

    Code:
    new Motivote(new RewardHandler(), "http://elysium-rs.com/vote", "Secretshhhhhhhhhhh").start();
    Is creating a new Motivote Object but isn't storing it in anything. This should create an error. You need to store it into an object (probably a Motivote object)

    Code:
    }
    This bracket is closing nothing. You declared two objects (playerManager and stillGraphicsManager) and tried to create another (motivote) but haven't opened a bracket anywhere.

    If I had to guess, maybe that would be the '}' to the server main method. If that's the case, then you need to move the playerManager and stillGraphicsManager somewhere else because they can't be declared there.
    Learning... slowly.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Client and Server Java Error
    By K RI E G in forum Help
    Replies: 3
    Last Post: 04-26-2015, 05:10 PM
  2. Launch Server Java Errors
    By NickyLanzz in forum Help
    Replies: 7
    Last Post: 12-27-2012, 07:51 PM
  3. [PI] Massacred Server.java Errors
    By Morpheus in forum Help
    Replies: 0
    Last Post: 12-13-2010, 08:23 PM
  4. [PI] When running server java error
    By `NICK in forum Help
    Replies: 5
    Last Post: 11-05-2010, 12:29 PM
  5. Replies: 11
    Last Post: 10-27-2008, 11:01 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •