How can I detect the sender of the command? (Console, player, mobs, or other)

Started by dkim19375 on Wed, 08/05/2020 - 19:01

Topic category: Help with modding (Java Edition)

Last seen on 22:17, 8. Sep 2020
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How can I detect the sender of the command? (Console, player, mobs, or other)
Wed, 08/05/2020 - 19:01

Is there a way to detect if the console in running a command using procedures? If so, how? And can you do the same with players and mobs?

Some other info:

- players are Operators

- Using procedures

If this is not possible, please consider making this possible! Thanks!