Chat Disable Upon Join

Discussion in 'Archived: Plugin Requests' started by ebear, Apr 14, 2013.

?

Would you like this plugin on your server?

  1. Yes!

    50.0%
  2. No.

    50.0%
  1. Offline

    ebear

    Hey. I was wondering if any of you have been on or have seen servers that have tons of people, and when you join, you find there is a message upon join that quickly goes away due to players in chat?

    What I was wondering is if there's a way for the chat to be disabled for the joining player, not the server chat, until the player executes a command, like /unmute. The question is if this is possible.

    Do you guys know of a plugin that will allow for players to only have the join messages shown, until the player executes a command? I think this would be a neat little plugin. What it would do is accept all Console -> Player messages shown upon join, then it would prompt the player to execute this command in order to see the chat.

    This plugin would work for servers with many players constantly sending chat messages. It'd just be an easy way for players to pay attention to what the Console is telling the player, such as MoTD or other messages, and it would then let the players exit this mode, bringing them into the main server chat.

    If you like the idea, or have any suggestions, or if you'd like to do this, please let me know.
    Thanks! :)
     
  2. Offline

    amhokies

    ebear I believe that this would be fairly simple. I'll have a look at it either tonight or tomorrow.

    Here is a very basic plugin that I came up with that should work. The only problems I see it having are with different chat formats. I've tested it on the default Minecraft server chat, and it works well. If you have any problems, let me know.

    <Edit by Moderator: Redacted mediafire url>

    All players will be unable to see chat when they join until they do the command /enablechat

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Nov 7, 2016
  3. Offline

    ebear

    Thanks amhokies ! Really means a lot!

    Hey. I just tested it and got an error I've seen from many plugins. The problem: Did you code the plugin for Java 7? That doesn't work with many systems. If you could fix that real quick, it'd be real cool! :D

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 1, 2016
  4. Offline

    amhokies

    Well since you asked so nicely...

    Try this : <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Nov 7, 2016
  5. Offline

    ebear

    Thanks amhokies!

    Ok. I'm getting this error:

    Code:
    2013-04-20 14:26:20 [SEVERE] Could not load 'plugins/chatdisable.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: me/amhokies/chatDisable/ChatDisable : Unsupported major.minor version 51.0
    >      at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184)
    >      at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:307)
    >      at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:231)
    >      at org.bukkit.craftbukkit.v1_5_R2.CraftServer.loadPlugins(CraftServer.java:262)
    >      at org.bukkit.craftbukkit.v1_5_R2.CraftServer.reload(CraftServer.java:628)
    >      at org.bukkit.Bukkit.reload(Bukkit.java:184)
    >      at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:25)
    >      at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:187)
    >      at org.bukkit.craftbukkit.v1_5_R2.CraftServer.dispatchCommand(CraftServer.java:546)
    >      at org.bukkit.craftbukkit.v1_5_R2.CraftServer.dispatchServerCommand(CraftServer.java:535)
    >      at net.minecraft.server.v1_5_R2.DedicatedServer.am(DedicatedServer.java:265)
    >      at net.minecraft.server.v1_5_R2.DedicatedServer.r(DedicatedServer.java:230)
    >      at net.minecraft.server.v1_5_R2.MinecraftServer.q(MinecraftServer.java:469)
    >      at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:401)
    >      at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573)
    Caused by: java.lang.UnsupportedClassVersionError: me/amhokies/chatDisable/ChatDisable : Unsupported major.minor version 51.0
    >      at java.lang.ClassLoader.defineClass1(Native Method)
    >      at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
    >      at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
    >      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    >      at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    >      at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    >      at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    >      at java.security.AccessController.doPrivileged(Native Method)
    >      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    >      at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:87)
    >      at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53)
    >      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    >      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    >      at java.lang.Class.forName0(Native Method)
    >      at java.lang.Class.forName(Class.java:249)
    >      at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173)
    >      ... 14 more
    
    Can you please fix this for me?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 1, 2016
  6. Offline

    amhokies

    I compiled with 1.6, not really confident as to whether this will work or not, but try this: <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Nov 7, 2016
  7. Offline

    ebear

    Works well! Thanks

    I think the plugin is conflicting with GroupManager. It disables the groups and all that stuff. Can you make it so it does not mess with that. The plugin is just meant to "filter" your chat until you do the command. Everything else was fine. Thanks.

    If you can fix this, it'd be really cool!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 1, 2016
  8. Offline

    jamietech

    Hiya!

    I've made an alternative version of the above plugin (from scratch!) and it functions the same, I assume.

    After the player joins, they will receive no chat (override-able!) until they use the command '/showchat' which will re-enable chat for them. They also cannot send chat messages during this period.

    The one configuration option 'onlynew' determines whether or not EVERY user will be targeted EVERY join or if only users who are joining for the FIRST TIME are being targeted.

    You can download it from my website, here.
     
  9. Offline

    ebear

    Hey. I just downloaded it, but the problem lies in this:

    Code:
    2013-04-21 10:11:04 [SEVERE] Could not load 'plugins/QuietJoin.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidDescriptionException: main is not defined
    >      at org.bukkit.plugin.PluginDescriptionFile.loadMap(PluginDescriptionFile.java:213)
    >      at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.java:42)
    >      at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:252)
    >      at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133)
    >      at org.bukkit.craftbukkit.v1_5_R2.CraftServer.loadPlugins(CraftServer.java:262)
    >      at org.bukkit.craftbukkit.v1_5_R2.CraftServer.reload(CraftServer.java:628)
    >      at org.bukkit.Bukkit.reload(Bukkit.java:184)
    >      at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:25)
    >      at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:187)
    >      at org.bukkit.craftbukkit.v1_5_R2.CraftServer.dispatchCommand(CraftServer.java:546)
    >      at org.bukkit.craftbukkit.v1_5_R2.CraftServer.dispatchServerCommand(CraftServer.java:535)
    >      at net.minecraft.server.v1_5_R2.DedicatedServer.am(DedicatedServer.java:265)
    >      at net.minecraft.server.v1_5_R2.DedicatedServer.r(DedicatedServer.java:230)
    >      at net.minecraft.server.v1_5_R2.MinecraftServer.q(MinecraftServer.java:469)
    >      at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:401)
    >      at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573)
    Caused by: java.lang.NullPointerException
    >      at org.bukkit.plugin.PluginDescriptionFile.loadMap(PluginDescriptionFile.java:208)
    >      ... 15 more
    
    If you could fix that, it'd be great!
     
  10. Offline

    jamietech

    Whoops! That was silly. Please re-download from the same link :)
     
  11. Offline

    ebear

  12. Offline

    ebear

    Hey jamietech! I'm loving the plugin, but I'm seeing this error:

    Code:
    2013-04-29 18:04:51 [SEVERE] Could not pass event AsyncPlayerChatEvent to QuietJoin v1.0
    org.bukkit.event.EventException
    >      at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
    >      at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    >      at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:26)
    >      at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:479)
    >      at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:461)
    >      at net.minecraft.server.v1_5_R2.PlayerConnection.chat(PlayerConnection.java:901)
    >      at net.minecraft.server.v1_5_R2.PlayerConnection.a(PlayerConnection.java:841)
    >      at net.minecraft.server.v1_5_R2.Packet3Chat.handle(Packet3Chat.java:44)
    >      at org.spigotmc.netty.NettyNetworkManager$2.run(NettyNetworkManager.java:106)
    >      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
    >      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    >      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    >      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
    >      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
    >      at java.lang.Thread.run(Thread.java:680)
    Caused by: java.util.ConcurrentModificationException
    >      at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
    >      at java.util.HashMap$KeyIterator.next(HashMap.java:828)
    >      at ch.jamiete.quietjoin.QuietJoin.onAsyncPlayerChat(QuietJoin.java:30)
    >      at sun.reflect.GeneratedMethodAccessor194.invoke(Unknown Source)
    >      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    >      at java.lang.reflect.Method.invoke(Method.java:597)
    >      at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
    >      ... 14 more
    It's when I say something and another player has not done /showchat. It can prove to be very annoying...
     
  13. Offline

    unforgiven5232

    this poor guy downloading all this stuff and its not working in the end
     
  14. Offline

    Thej0y

    a small idea: Make a the default channel text appear black. Users must then join another channel to chat, leaving the default one empty..or with worldguard, make a 'hub' region and flag it with 'chat-recieve deny' and make people go there on join....... That said, its not as clean as a plugin and might be anoying, but it works :p

    ps: I could try to make it... If previous dls still dont work(and the authors not working on them anymore :p)
     

Share This Page