Scoreboard Hide

Discussion in 'Plugin Requests' started by Apostille, Oct 17, 2020.

Thread Status:
Not open for further replies.
  1. Offline

    Apostille

    Plugin category: Scoreboard Sidebar

    Minecraft version: 1.16.3

    Suggested name: SidebarVanish

    When I'd like it by: Anytime soon

    Commands: /sbshow /sbhide

    Description:
    Allows any user to hide or show a sidebar scoreboard (specific plugin being used for the scoreboard sidebar is Scoreboard Revision)
     
  2. Offline

    Chr0mosom3

    I'm not sure this is entirely possible server-side, on client-side, there are mods for that, but the only way possible I can see of doing this is by overriding the existing scoreboard using an empty one.
     
  3. Offline

    Apostille

    Do you think it would be possible to edit the plugin itself to remove the scoreboard and add it? Ive seen this on an individual level for lots of servers who use the same sort of scoreboard system
     
  4. Offline

    Chr0mosom3

    Yea, it can be done. The source code exists on github and I can fork it.
     
  5. Offline

    Apostille

    that would be great thanks!
     
  6. Offline

    Chr0mosom3

    After looking at the source code for a bit, I realized that there already is a scoreboard hide command built in, suggested by this code
    Code:
    if(Session.disabled_players.contains(this.player))
            {
                if(!disabled)
                    this.player.setScoreboard(Main.empty);
                disabled = true;
                return;
            } else if(Session.re_enable_players.contains(this.player)) {
                disabled = false;
                this.player.setScoreboard(this.slim.board);
                Session.re_enable_players.remove(this.player);
            }
    
     
  7. Offline

    Apostille

    I cant seem to find the command for it, do you know what the command may be?
    [Edit]
    So there is actually no command for this, there is only 1 command which is /sb reload
     
  8. Offline

    Chr0mosom3

    Did you check the config, there has to be a reason for it's existence

    Sent from my motorola one vision using Tapatalk
     
  9. Offline

    Apostille

    There isnt anything in the config, I event checked the official Plugin page and not to my suprise, nada mucho,
     
  10. Offline

    SavageAvocado

Thread Status:
Not open for further replies.

Share This Page