Skip to content

Conversation

@Geph
Copy link
Member

@Geph Geph commented Apr 16, 2025

Adding new schema for DB, more items collected to be used for triggers.

Geph added 2 commits April 16, 2025 00:25
Adding region-members to region database table
Incrementing version number
@Geph Geph requested a review from jackah2 April 16, 2025 06:44
@Geph Geph self-assigned this Apr 16, 2025
Copy link
Member

@jackah2 jackah2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks! If you tested locally and everything is working fine I say merge it :)

Comment on lines +37 to +42
/* Defensive null check */
if (getCommand("positiontracker") != null) {
getCommand("positiontracker").setExecutor(new TrackerCommand(this));
} else {
getLogger().warning("Command 'positiontracker' is not defined in plugin.yml!");
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly this isn't necessary but not worth removing it

Comment on lines +10 to +22
// Add to whimc_player_positions
private static final String ADD_POS_YAW =
"ALTER TABLE whimc_player_positions ADD COLUMN yaw FLOAT AFTER z;";
private static final String ADD_POS_PITCH =
"ALTER TABLE whimc_player_positions ADD COLUMN pitch FLOAT AFTER yaw;";

// Add to whimc_player_region_events
private static final String ADD_REGION_YAW =
"ALTER TABLE whimc_player_region_events ADD COLUMN yaw FLOAT AFTER z;";
private static final String ADD_REGION_PITCH =
"ALTER TABLE whimc_player_region_events ADD COLUMN pitch FLOAT AFTER yaw;";
private static final String ADD_REGION_MEMBERS =
"ALTER TABLE whimc_player_region_events ADD COLUMN region-members VARCHAR(64) AFTER region;";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe these the queries can be combined into 1 per table. But also probably not worth making that change - this is very clear as is.

@Geph Geph merged commit f7bb502 into master Apr 16, 2025
1 check passed
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