Command blacklist with 'null' entry causes error (due to blacklistCmd.split(..)) #353


  • Accepted
Open
Assigned to blablubb
  • _ForgeUser13931376 created this issue Aug 7, 2017

    Original title: Every command i do starting with /pb, it just says /pb back to me

     

    I'm new to bukkit and I don't know almost anything. So there i have a problem and every command I do starting with /pb, it just says /pb back to me (i can't even create an arena). Server is bukkit on v.1.10. Please Help!

     

    Nejc.

  • _ForgeUser13931376 added the tags Invalid Other Aug 7, 2017
  • blablubb posted a comment Aug 9, 2017

    Please upload your server log.

  • blablubb self-assigned this issue Aug 9, 2017
  • blablubb removed the tags Invalid Other Aug 9, 2017
  • blablubb added a tag Waiting Aug 9, 2017
  • Rockonbrad added an attachment latest.log Mar 25, 2018

    Serverlog

    latest server log that shows the error, and all the plugins being loaded in. I am runnning 1.12.2 spigot and am having the same issue.

  • blablubb posted a comment Mar 26, 2018

    Can you also attach your paintball config.yml? I am especially interested in what you have setup for the Paintball.Blacklist.Commands entry

  • Rockonbrad added an attachment config.yml Mar 26, 2018

    paintball config.yml

    Paintbal config

  • Rockonbrad posted a comment Mar 26, 2018

    i see there is a null command, but the blacklist isn't enabled either. I deleted all the commands i added, and it works fine now... I dont want players to be able to tp using /home , /suicide, /warp, or use a kit when in paintball mode, because it'll wipe their inventory.

  • blablubb posted a comment Mar 26, 2018

    Yes, the issue here is that 'null' entry. It will parse the commands list regardless if the feature is enabled or not.

     

    As the original issue creator did not answer I will simply assume he had the same issue for now. I will keep this issue open to remind me to filter null entries with the next update.

     

    Regarding blocking commands: Paintball will block all non-paintball-commands by default for all non-admin-players playing paintball. (You can allow additional commands with the 'Allowed Commands'-setting.) So you should not have to configure anything in order to block those commands for paintball-playing players.

     

    The Command-Blacklist feature can be used to block commands of players outside of paintball that affect players inside of paintball. Example: If you allow your players to teleport other players (for whatever reason..), a player A could send a request to player B, then player A joins paintball (gets inventory cleared and receives invulnerability), and then player B outside of paintball accepts the teleport request of player A, and player A gets teleported from the paintball lobby to player B but still has invulnerability.

    However, as this feature is pretty heavy performance-wise I recommend using it only if really necessary. And this also only works if the command contains the name of the affected player..

     


    Edited Mar 26, 2018
  • blablubb added a tag Accepted Mar 26, 2018
  • blablubb removed a tag Waiting Mar 26, 2018
  • blablubb edited title and description Mar 26, 2018

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