-
Notifications
You must be signed in to change notification settings - Fork 1
Qrf data #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Adding region-members to region database table Incrementing version number
jackah2
left a comment
There was a problem hiding this 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 :)
| /* Defensive null check */ | ||
| if (getCommand("positiontracker") != null) { | ||
| getCommand("positiontracker").setExecutor(new TrackerCommand(this)); | ||
| } else { | ||
| getLogger().warning("Command 'positiontracker' is not defined in plugin.yml!"); | ||
| } |
There was a problem hiding this comment.
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
| // 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;"; |
There was a problem hiding this comment.
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.
Adding new schema for DB, more items collected to be used for triggers.