Class PlayerHelper

java.lang.Object
io.github.icrazyblaze.twitchmod.util.PlayerHelper

public class PlayerHelper extends Object
  • Field Details

    • defaultServer

      public static net.minecraft.server.MinecraftServer defaultServer
    • affectedPlayers

      public static List<? extends String> affectedPlayers
  • Constructor Details

    • PlayerHelper

      public PlayerHelper()
  • Method Details

    • player

      public static net.minecraft.server.level.ServerPlayer player()
      This method gets a reference to the player, using the username specified. If the player is not found, it will get the first player in the list.
      Returns:
      player
    • getUsername

      public static String getUsername()
    • setUsername

      public static void setUsername(String newname)