Read console message

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Omanoctoa

Member
Feb 4, 2025
36
3
8
Hello!
I have been trying to find a way to resolve some plugin issues (various issues and plugins) and would like to know if/how to read console output using Skript and SkBee only. Please do not suggest an add-on.

Essentially, a plugin outputs something to console or in chat (any sent message not from a player), I would like to listen for those messages and react to them...

Something like:
Code:
on chat:
  sender is console
  set {_m} to message
  {_m} contains "PluginName"
  send "Console is speaking... &3%{_m}%" to all players

Is this possible?
 
Hello! Unfortunately, this isn't possible, and it never will be. Nor Skript or any Skript addon at the moment can divert console output to in-game chat. I don't see a reason you'd have to use this instead of just looking at console yourself anyway.
 
Hello! Unfortunately, this isn't possible, and it never will be. Nor Skript or any Skript addon at the moment can divert console output to in-game chat. I don't see a reason you'd have to use this instead of just looking at console yourself anyway.
I thought I had replied to this, oops!
I'm working alongside other plugins that will throw errors and I'm trying to make Skript read those errors. There doesn't seem to be any way for Skript to hook into other plugin configs/variables without using Skript-Mirror or something similar.

Is there some way to let Skript read server-sent chat messages? Broadcasts basically? I've seen a few notes regarding broadcasted messages but they don't seem to work for me. Can anything within Skript or SkBee listen to these?
 
Thanks BaeFell,
I had a look, that might work. I'm trying to avoid using other add-ons or plugins, especially because I believe that one is soon to be unsupported.

I've seen a few posted about reading plugin chat messages but that doesn't seem to be as easy as I thought.
 
Thanks BaeFell,
I had a look, that might work. I'm trying to avoid using other add-ons or plugins, especially because I believe that one is soon to be unsupported.

I've seen a few posted about reading plugin chat messages but that doesn't seem to be as easy as I thought.
Ah sorry - forgot you said no extra addons. With only Skript or SkBee, that isn't possible. It might be possible with skript-reflect, but can't remember how it's done exactly.