Thread: Commands not working

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 Commands not working 
    Registered Member catinahat's Avatar
    Join Date
    May 2017
    Posts
    17
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    Hi, I'm currently messing around with the Vencillio release. At first the commands for developer wasn't working so I replaced it with this
    Code:
    @Override
    	public boolean meetsRequirements(Player player) {
    		return player.getRights() >= 4 && player.getRights() < 5;
    	}
    }
    and they were working for awhile, but then kinda just stopped now none of the commands above normal player commands don't work at all.
    Reply With Quote  
     

  2. #2  
    Registered Member catinahat's Avatar
    Join Date
    May 2017
    Posts
    17
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Algon View Post
    What exactly did you change? Can you post the code prior to you editing it
    Code:
    @Override
    	public boolean meetsRequirements(Player player) {
    		return PlayerConstants.isDeveloper(player);
    	}
    }
    I've tried changing it back, but it still doesn't work.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Necrotic's Avatar
    Join Date
    Mar 2016
    Posts
    158
    Thanks given
    156
    Thanks received
    56
    Rep Power
    130
    Try

    Code:
    @Override
    	public boolean meetsRequirements(Player player) {
    		return player.getRights() == 4;
    	}
    }
    Reply With Quote  
     

  4. #4  
    Registered Member catinahat's Avatar
    Join Date
    May 2017
    Posts
    17
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Necrotic View Post
    Try

    Code:
    @Override
    	public boolean meetsRequirements(Player player) {
    		return player.getRights() == 4;
    	}
    }
    Tried, didn't work . All 'staff' commands don't work, but all normal player commands work.
    Reply With Quote  
     

  5. #5  
    Registered Member catinahat's Avatar
    Join Date
    May 2017
    Posts
    17
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Algon View Post
    Code:
    isDeveloper
    Is most likely your issue, search that in your playerconstants class and I'm sure you'll find someone else's name in relation to that piece of code, you'll have to change it to your name so the server knows you are "isDeveloper".
    Changed to my name in game
    Code:
    public static boolean isDeveloper(Player p) {
    		return p.getAttributes().get("developerkey") != null || p.getUsername().equalsIgnoreCase("Zack");
    tried developer commands in game, still doesn't work.

    Update on the situation; It appears everytime or every other time I exit the server and close it down then restart it my player resets to owner (player rights 3) and if i create a new character it'll automatically be given owner status. None of the admins also work still for any of staff commands
    Reply With Quote  
     

  6. #6  
    Registered Member catinahat's Avatar
    Join Date
    May 2017
    Posts
    17
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    bump
    Reply With Quote  
     

  7. #7  
    Community Veteran


    Arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,950
    Thanks given
    210
    Thanks received
    349
    Rep Power
    1376
    Quote Originally Posted by catinahat View Post
    Changed to my name in game
    Code:
    public static boolean isDeveloper(Player p) {
    		return p.getAttributes().get("developerkey") != null || p.getUsername().equalsIgnoreCase("Zack");
    tried developer commands in game, still doesn't work.

    Update on the situation; It appears everytime or every other time I exit the server and close it down then restart it my player resets to owner (player rights 3) and if i create a new character it'll automatically be given owner status. None of the admins also work still for any of staff commands
    It is either codes infront of the command codes or the boolean check code that is your issue.
    It is quite hard to tell due to your code is only a boolean check.


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  8. #8  
    Registered Member catinahat's Avatar
    Join Date
    May 2017
    Posts
    17
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by arch337 View Post
    It is either codes infront of the command codes or the boolean check code that is your issue.
    It is quite hard to tell due to your code is only a boolean check.
    I found out why all new accounts were given owner status, still haven't figured out why none of the commands are working. Currently roled back my server entirely to try and figure out the issue.

    Started from scratch and that seemingly fixed the commands. Spent 2 1/2 days trying to fix something when i should of just restarted and redid everything since that only took me about 30 minutes.
    Reply With Quote  
     

  9. #9  
    Community Veteran


    Arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,950
    Thanks given
    210
    Thanks received
    349
    Rep Power
    1376
    Quote Originally Posted by catinahat View Post
    I found out why all new accounts were given owner status, still haven't figured out why none of the commands are working. Currently roled back my server entirely to try and figure out the issue.

    Started from scratch and that seemingly fixed the commands. Spent 2 1/2 days trying to fix something when i should of just restarted and redid everything since that only took me about 30 minutes.
    Or you should of just gone through from when they trigger the command packet till the command itself and see if everything is even being send.


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  10. #10  
    §ecurity Ⱥnalyst
    Noele's Avatar
    Join Date
    Dec 2016
    Posts
    527
    Thanks given
    291
    Thanks received
    572
    Rep Power
    2203
    All of this and I could bet you $100 it was all caused by an unnecessary bracket.
    Attached image
    Join the Zenyte discord below to keep up with the development, and grow with our community! 2000+ members and 7000+ registered in one week!
    Attached image
    Reply With Quote  
     

  11. Thankful user:


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. BattleScape commands not working
    By DarkArt in forum Help
    Replies: 7
    Last Post: 12-09-2009, 05:32 PM
  2. [CLEANED V4] Commands not working?
    By Unity in forum Help
    Replies: 4
    Last Post: 06-29-2009, 02:20 AM
  3. commands not working !!!
    By RuneBlaze in forum Help
    Replies: 14
    Last Post: 05-11-2009, 01:41 PM
  4. making commands not work in wildy
    By Jared1220 in forum Requests
    Replies: 9
    Last Post: 11-10-2008, 06:37 PM
  5. Yell command not working
    By mitch123hoff in forum Help
    Replies: 7
    Last Post: 10-31-2008, 06:42 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •