Skip to content

Conversation

@Paldiu
Copy link
Member

@Paldiu Paldiu commented Sep 10, 2023

Changes:

  • Add dependencies com.electronwill.night-config:core, toml, and json

  • Add the appropriate bukkit tags required by the minecrell/plugin-yml gradle plugin to Veritas and Tyr.

  • Created GenericConfig class for TOML and JSON configurations.

  • Added ConfigType enum to define configuration formats, parsers, and writers for TOML and JSON.

  • Created FileUtils class containing useful file and directory creation methods

  • Added @ApiStatus.Internal to both the BukkitDelegate class and Completions annotation to specify that they should not be used externally.

  • Changed Configuration#getList(String, Class) to Configuration#getCollection(String, Class)

  • Adjusted return value of ContextProvider#fromString to return Optional instead of @Nullable T

  • Adjusted classes which used previous API methods to use the newly updated ones.

Patchwork

Patchwork has had some moderately impactful API changes. Classes have been renamed, return values have been changed, and classes have been relocated to different packages. Please see the commit details to see which classes have changed or refer to the Javadoc.

Discord Bot

The discord bot has many supported commands, all able to be added or removed at will through the json files in Veritas' data folder. Supported commands are:

  • help: Shows information about all commands.
  • tps: Gets the current server TPS
  • list: Shows the current online player list. Takes a boolean staff option which, when true, lists only those with staff permissions currently online.
  • whisper: Sends a message to the specified user on the server that only they can see.
  • kick: For admins, kick a player on the server with the specified reason.
  • ban: For admins, ban a player on the server with the specified reason. Optionally, you can include a duration in minutes, or the default is 5 minutes.

Paldiu added 7 commits August 28, 2023 01:53
# Changes:
- Migrate from com.google.gson:gson and com.tomlj:tomlj over to com.electronwill.night-config:core, toml, and json
- Add the appropriate bukkit tags required by the minecrell/plugin-yml gradle plugin to Veritas and Tyr.
# Changes:
- Removed specific TOML wrapper in favor of GenericConfiguration.
- Added ConfigType enum to define configuration formats, parsers, and writers for TOML and JSON.
- Created FileUtils class containing useful file and directory creation methods
- Added @ApiStatus.Internal to both the BukkitDelegate class and Completions annotation to specify that they should not be used externally.
# Changes:
- Changed Configuration#getList(String, Class) to Configuration#getCollection(String, Class)

- Renamed GenericConfiguration -> GenericConfig

- Implemented semantics for GenericConfig#getCollection and GenericConfig#getStringList

- Adjusted return value of ContextProvider#fromString to return Optional<T> instead of @nullable T

- Adjusted classes which used previous API methods to use the newly updated ones.
# Changes:
- Added /ban <player> <reason> [duration] command. Bans a user on the server for the specified reason and duration (in minutes). If no duration is specified, the default is 5 minutes.

- Added /kick <player> <reason> command. Kicks a player on the server for the specified reason.

- Added /whisper <player> <message> command. Send a private message to a player on the server.
# Conflicts:
#	Patchwork/src/main/java/fns/patchwork/config/Configuration.java
#	Veritas/src/main/java/fns/veritas/Aggregate.java
#	Veritas/src/main/java/fns/veritas/bukkit/ServerListener.java
#	Veritas/src/main/java/fns/veritas/client/BotClient.java
#	Veritas/src/main/java/fns/veritas/client/BotConfig.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants