Skip to content

pgfmc/plugins

Repository files navigation

plugins

Has all of the plugins used on the PGF server.

Run the build.sh to build the jar files. Files will be output to target.

Compile using JDK 21

Core

Implements core (heh heh) functionality for the PGF server. Contains some simple commands, a custom perms manager, and multiple small frameworks.

Commands

  • /Broadcast <message> Broadcasts a raw message to all players online. Can only be used by Admins.
  • /Skull <player> Gives the sender a skull of the input player. can only be used by Admins.
  • /tag <player> <path> <data> <save {true/false}> Saves input to the player's Playerdata. if is true, saves the tag to file.
  • /nick <nickname/reset> Sets the sender's nickname to input String. if /nick reset is used, the sender's nickname is reset.

Frameworks / Helpers

PlayerData

PlayerData keeps track of all player-specific data in PGF. Use the below documentation:
PlayerData.getPlayerData(in) is used to get a PlayerData. set in to a OfflinePlayer, Name, Nickname, UUID, to get their associated PlayerData.

Once you have a PlayerData object, you can use:
pd.setData(String name, Object data) to set data to