ChatEvents

You need to display a player's rank, his money or anything else when you hover his name in the chat? ChatEvents is for you!!

File Details

ChatEvents v0.7

  • B
  • Feb 27, 2015
  • 10.03 KB
  • 324
  • 1.8.1

File Name

ChatEvents.jar

Supported Versions

  • 1.8.1

Changelog

Added per-player management
Added {VIEWER}, {VIEWERNAME}, {VIEWERCUSTOM} and {VIEWERTAB} variables
Added configurable priority for the event (for maximum support with Factions and other plugins)
Added option to disable each event (used for maintenance or testing for exemple)
Made it easier to create a Module
Removed empty strings in JSON to make it "cleaner"
Rewrote Module.java to add documentation and per-player compatibility
Fixed five major bugs from v0.6
Fixed permissions for click events and "message" part
Fixed: permissions where calculated for the sender, not the receiver

Modules

Before

ChatEvents.addModule(new Module("test") {

	@Override
	public String getValue (Player player) {
		return "Hello, World!";
	}

});

After

new Module("test") {

	@Override
	public String getValue (Player player, Player viewer) {
		return "Hello, World!";
	}

};

Changes

  • ChatEvents.addModule still works, but you don't need to use it while creating a variable.
  • New argument added: Player viewer = The player to which this message will be sent to.

Major

There is no known major bug in this version!

Normal

#1: The {MESSAGE} variable will always be in white, no matter what color code is before.

Minor

#2: If the color code for the player name isn't inside the {[...]}, the name will show as white.