java.lang.Object
studio.magemonkey.codex.mccore.config.Filter

public class Filter extends Object

A collection of commonly used filters to avoid needing to instantiate them repeatedly. To set the replacement, just do .setReplacement(String). This method also returns the filter back so you can put it straight in the sendMessage or getMessage calls.

Note: you are not limited to this list. You can create your own filters using just the CustomFilter constructor. This list is merely for slight optimizations by avoiding creating filters constantly. You can make your own global filters as well to make your own optimizations as well.

  • Field Details

    • PLAYER

      public static final CustomFilter PLAYER

      Filter for player names

      Token: {player}

    • TARGET

      public static final CustomFilter TARGET

      Filter for a target's name

      Token: {target}

    • DESCRIPTION

      public static final CustomFilter DESCRIPTION

      Filter for a description

      Token: {description}

    • MESSAGE

      public static final CustomFilter MESSAGE

      Filter for a generic message

      Token: {message}

    • AMOUNT

      public static final CustomFilter AMOUNT

      Filter for a numerical amount

      Token: {amount}

    • VALUE

      public static final CustomFilter VALUE

      Filter for a generic value

      Token: {value}

  • Constructor Details

    • Filter

      public Filter()