Thread: Using InterventionX 718/742 - How can I make this work?

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 Using InterventionX 718/742 - How can I make this work? 
    Registered Member Enyll's Avatar
    Join Date
    Aug 2016
    Posts
    121
    Thanks given
    21
    Thanks received
    1
    Rep Power
    13
    Okay, so basically i've made my own way of setting your player rights from settings.java
    EG:

    Code:
    public static final String IS_OWNER = "Qwerty";
    	
    public static final String IS_HEAD_MOD = "";
    public static final String IS_MOD1 = "";
    public static final String IS_MOD2 = "";
    public static final String IS_MOD3 = "";
    	
    public static final String IS_HEAD_ADMIN = "";
    public static final String IS_ADMIN1 = "";
    public static final String IS_ADMIN2 = "";
    	
    public static final String IS_PLAYER_SUPPORT = "";
    However, in players.java it has it's own way as well by isOwner, isAdmin (ETC, you get the picture). How may i make it so i don't have to do the effort of changing every single isOwner parts, and just customizing the isOwner variable itself..

    The problem with this is that setRights does not work in this situation (I know it's because it has no variable), but how can i make it so setRights works? there is a setRights variable in players.java

    ]
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Nov 2013
    Posts
    746
    Thanks given
    187
    Thanks received
    459
    Rep Power
    5000
    Quote Originally Posted by Enyll View Post
    Okay, so basically i've made my own way of setting your player rights from settings.java
    EG:

    Code:
    public static final String IS_OWNER = "Qwerty";
    	
    public static final String IS_HEAD_MOD = "";
    public static final String IS_MOD1 = "";
    public static final String IS_MOD2 = "";
    public static final String IS_MOD3 = "";
    	
    public static final String IS_HEAD_ADMIN = "";
    public static final String IS_ADMIN1 = "";
    public static final String IS_ADMIN2 = "";
    	
    public static final String IS_PLAYER_SUPPORT = "";
    However, in players.java it has it's own way as well by isOwner, isAdmin (ETC, you get the picture). How may i make it so i don't have to do the effort of changing every single isOwner parts, and just customizing the isOwner variable itself..

    The problem with this is that setRights does not work in this situation (I know it's because it has no variable), but how can i make it so setRights works? there is a setRights variable in players.java

    ]
    The variable is propably protected or private, use getter or setter
    Reply With Quote  
     

  3. #3  
    Registered Member Enyll's Avatar
    Join Date
    Aug 2016
    Posts
    121
    Thanks given
    21
    Thanks received
    1
    Rep Power
    13
    Quote Originally Posted by Gangsta. View Post
    The variable is propably protected or private, use getter or setter
    this is the setRights thing

    Code:
    public void setRights(int rights) {
    		this.rights = rights;
    	}
    I also commented out this

    Code:
    /*if (isOwner() && !isAdmin()) {
    			setRights(2);//SETS THE ACCOUNT TO OWNER PERMISSIONS
    		}*/
    this is because i'm now going to use this for setting the rights

    Code:
    public boolean isOwner() {
    			if (getUsername().equalsIgnoreCase(Settings.IS_OWNER)) {
    				setRights = 2;
    			}
    		return false;
    	}
    when it works of course
    Reply With Quote  
     

  4. #4  
    Respected Member


    Kris's Avatar
    Join Date
    Jun 2016
    Age
    26
    Posts
    3,638
    Thanks given
    820
    Thanks received
    2,642
    Rep Power
    5000
    You do realize that there's a difference between setRights(2) & setRights = 2..?
    Either use it as setRights(2); or as rights = 2;
    Attached image
    Reply With Quote  
     

  5. Thankful user:


  6. #5  
    Registered Member Enyll's Avatar
    Join Date
    Aug 2016
    Posts
    121
    Thanks given
    21
    Thanks received
    1
    Rep Power
    13
    Quote Originally Posted by Kris View Post
    You do realize that there's a difference between setRights(2) & setRights = 2..?
    Either use it as setRights(2); or as rights = 2;
    hmm.. testing them now, and yes I do know there's a difference

    EDIT: seems like no errors, perhaps works... but i don't know, considering this server base is garbage lol, it crashes every time you try to login, or even if you're in game.. definitely need a new 718/742 base that isn't so bad
    Reply With Quote  
     

  7. #6  
    Respected Member


    Kris's Avatar
    Join Date
    Jun 2016
    Age
    26
    Posts
    3,638
    Thanks given
    820
    Thanks received
    2,642
    Rep Power
    5000
    Quote Originally Posted by Enyll View Post
    Neither does it so idk
    Does what? What are you even on..?
    Your isOwner() method currently ALWAYS sets the player's rights to 2 and then returns as false. What exactly are you even trying to accomplish..?
    Attached image
    Reply With Quote  
     

  8. #7  
    Registered Member Enyll's Avatar
    Join Date
    Aug 2016
    Posts
    121
    Thanks given
    21
    Thanks received
    1
    Rep Power
    13
    Quote Originally Posted by Kris View Post
    Does what? What are you even on..?
    Your isOwner() method currently ALWAYS sets the player's rights to 2 and then returns as false. What exactly are you even trying to accomplish..?
    It's okay nothing matters ahaha, i'm going to look for another 718/742 base because this one i'm currently using has so many issues, i'll fix this in the next base i get, i understand what i need to do, sorry for the inconvenience aha
    Reply With Quote  
     

  9. #8  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,788
    Thanks given
    706
    Thanks received
    702
    Rep Power
    570
    Quote Originally Posted by Enyll View Post
    It's okay nothing matters ahaha, i'm going to look for another 718/742 base because this one i'm currently using has so many issues, i'll fix this in the next base i get, i understand what i need to do, sorry for the inconvenience aha
    You should probably take a few courses or at least try to do more stuff on your own because the problem doesn't seem to be with the source:


    Not bashing, just saying that you will be stuck posting help threads forever if you don't learn. And that's beneficial to no one.
    Project thread
    Reply With Quote  
     

  10. Thankful user:


  11. #9  
    Registered Member Enyll's Avatar
    Join Date
    Aug 2016
    Posts
    121
    Thanks given
    21
    Thanks received
    1
    Rep Power
    13
    Quote Originally Posted by clem585 View Post
    You should probably take a few courses or at least try to do more stuff on your own because the problem doesn't seem to be with the source:


    Not bashing, just saying that you will be stuck posting help threads forever if you don't learn. And that's beneficial to no one.
    Ahahaha, I never learnt java, i'm taking a programming course right now, but i've never learnt this in my life, working on C#, Visual Basic, HTML, CSS and JavaScript... never Java, sorry if I'm annoying if I post in the help section for help, I don't care if you want to go against me and say i'm bad, because it's true, I don't know java, I want to learn, lmao

    EDIT: And also the base i'm using is a bit.. eh, I wasn't lying about that, it has a lot of problems.. It crashes during logging in, black screens happen often.. all sorts

    The other base I was using which was 718/830 (Valkyr) was so much better, but I wanted to use a nice 718/742 base



    :: A lot of people on here help you well, and it does help you learn too.. not sure why it wouldn't
    Reply With Quote  
     

  12. #10  
    EXALTED

    Join Date
    Nov 2012
    Posts
    393
    Thanks given
    35
    Thanks received
    33
    Rep Power
    5
    Quote Originally Posted by Enyll View Post
    Ahahaha, I never learnt java, i'm taking a programming course right now, but i've never learnt this in my life, working on C#, Visual Basic, HTML, CSS and JavaScript... never Java, sorry if I'm annoying if I post in the help section for help, I don't care if you want to go against me and say i'm bad, because it's true, I don't know java, I want to learn, lmao

    EDIT: And also the base i'm using is a bit.. eh, I wasn't lying about that, it has a lot of problems.. It crashes during logging in, black screens happen often.. all sorts

    The other base I was using which was 718/830 (Valkyr) was so much better, but I wanted to use a nice 718/742 base



    :: A lot of people on here help you well, and it does help you learn too.. not sure why it wouldn't
    Bro, if you know C# there's no way you would've made the mistake of trying setRights = 2;
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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. Replies: 1
    Last Post: 12-16-2014, 08:54 AM
  2. Replies: 2
    Last Post: 10-28-2013, 05:32 AM
  3. how can i make this work?
    By startcode in forum Help
    Replies: 21
    Last Post: 09-05-2010, 11:27 AM
  4. How can I make this work?
    By Xynasty in forum Help
    Replies: 2
    Last Post: 08-16-2010, 06:06 PM
  5. How can i make this work
    By I Frozen I in forum Help
    Replies: 8
    Last Post: 11-08-2009, 05:19 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
  •