I want to hide clear messages #282


Open
  • valerycraftwasnottaken created this issue Dec 11, 2020

    Name Says Alll

  • TheFlagen430297 posted a comment Dec 16, 2020

    There are a few ways that you can get this!
    • Set it up Perm based (Recommended)

    • Turn it off completely 

     

    In the top part of the Config you will find the "global-broadcasts", this is what controls the messages

    global-broadcasts:
      enabled: <Boolean>
      async:  <Boolean>
      use-permission-for-broadcasts: <Boolean>
      permission: <String>

     

    (BTW a Boolean is either True or False)

     

    Lets look at the enabled: <Boolean> Part:

    If you set this to False, it will disable all broadcasts about auto-clearing messages

    I don't recommend this, but it is fine either way. It will get to the place that you want :D

     

    Lets look at the async:  <Boolean> Part:

    I don't 100% know a lot about this, it says that: [# -- 'async' Should messages be broadcasted on another thread], I have mine set to false, I don't really know why you would want it on another thread, it might help with lag but that is my guess. So set this to False :)

    Lets look at the use-permission-for-broadcasts: <Boolean> Part:

    Ok so this is what I am doing and recommend doing. Using permissions offer more flexibly because it will still broadcast the messages but if you (or anyone else) doesn't want to see it, you can just set it to False in your Permission Plugin instead of in the Config
    So what I would do is set use-permission-for-broadcasts: true
    However: If you do not have a Permission Plugin then I would set this to False and set enabled: false

     

    Lets look at the permission: <String> Part:

    This can be whatever you want as long as it is formatted correctly. A good one would look like clearlag.broadcast This makes it look clean and will work with In-Game commands for your Permission plugin. Now lets say that you have Default rank and Admin rank, you want Admins to see the clear messages but not Default rank, all you have to do is give Admin rank clearlag.broadcast and then they can see it, but Default can't

     

    So with what I recommend is this:

    global-broadcasts:
      enabled: true
      async:  false
      use-permission-for-broadcasts: true
      permission: clearlag.broadcast

    But you might also be happy with this setup too It will just disable the messages:

    global-broadcasts:
      enabled: false
      async:  false
      use-permission-for-broadcasts: false
      permission: clearlag.broadcast

    I do hope that I was helpful and that you got it configed to your liking! God Bless and have a Merry Christmas :D


    Edited Dec 16, 2020

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