1. These forums are still being retired! Please use GitHub discussions or Discord. You cannot create new threads or new accounts now. If you need to contact some user of the forums, you should do it sooner, rather than later. This notice was last updated on May 30th, 2021.

Isolate

Discussion in 'Plugin Suggestions' started by Antagonist, Jun 9, 2013.

  1. Antagonist

    Antagonist Level 6

    Joined:
    Sep 15, 2012
    Messages:
    149
    I'm not sure if there's a plugin with this yet, but if there isn't there definitely should be :D

    "/isolate {player}" stops a player from hearing anyone (and certain commands). I know that could be done with channels, eg forcing them into an empty channel, but from my experience channels screw with other features. I'd need it to have a feature of hiding all messages to them as well though.

    If you're curious, the reason I require this is because in my server every now and then AutoBroadcast uses WorldEdit commands to paste in land, and in order to do this it uses Sudo from Essentials, and sudo's player "1" into using the worldedit commands (sudo can force them to even if they don't have permission). The problem is every hour player 1 gets a whole lot of messages saying "schematic pasted.." etc. So with this I'd just put the isolate command before and after the worldedit stuff, then they wouldn't see the worldedit commands. This problem I have could be solved with other plugin ideas but this one is the simplest I think.

    Thanks!
     
  2. Ijwu

    Ijwu Level 11

    Joined:
    Apr 4, 2012
    Messages:
    644
    I think you're unnecessary using sudo. If you just use the command without sudo wouldn't the server just execute the WorldEdit commands without a problem? Have you tried that? AutoBroadcast automatically uses the Server to run commands when you put commands in a broadcast. The Server is basically just a player with all permissions. (And only usable through plugins or the console.)
     
  3. Antagonist

    Antagonist Level 6

    Joined:
    Sep 15, 2012
    Messages:
    149
    The server can't have a region selected with WorldEdit though (both with the console and with AutoBC) it just says "Command Failed, check logs for details", my workaround for that is to make AutoBC super-sudo a player into doing it instead
     
  4. Ijwu

    Ijwu Level 11

    Joined:
    Apr 4, 2012
    Messages:
    644

    Huh, oh. That's odd. When I get out of this game of LoL I'll check out WorldEdit's source. Could be changeable, after all.
     
  5. Antagonist

    Antagonist Level 6

    Joined:
    Sep 15, 2012
    Messages:
    149
    Ok! Thanks :) Pretty sure this is the error it causes by the way
    Code:
    Exception while trying to load: luanet.dll
    Could not load file or assembly '9728 bytes loaded from TerrariaServer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.
    Stack trace:
      at System.Reflection.RuntimeAssembly.nLoadImage(Byte[] rawAssembly, Byte[] rawSymbolStore, Evidence evidence, StackCrawlMark& stackMark, Boolean fIntrospection, SecurityContextSource securityContextSource)
      at System.Reflection.Assembly.Load(Byte[] rawAssembly)
      at Terraria.ProgramServer.Initialize(Main main)
     
  6. Ijwu

    Ijwu Level 11

    Joined:
    Apr 4, 2012
    Messages:
    644
    Haha, no that's not the error. That's from you putting luanet.dll in your ServerPlugins folder.
     
    • Like Like x 1
  7. Antagonist

    Antagonist Level 6

    Joined:
    Sep 15, 2012
    Messages:
    149
    Ah thanks XD
     
  8. Antagonist

    Antagonist Level 6

    Joined:
    Sep 15, 2012
    Messages:
    149
    Any news on this?