-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
877728d
commit 10fbe29
Showing
57 changed files
with
2,344 additions
and
2,017 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
16.17.0 | ||
20.13.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
sidebar_position: 4 | ||
sidebar_position: 5 | ||
--- | ||
|
||
# Events | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
sidebar_position: 3 | ||
sidebar_position: 4 | ||
--- | ||
|
||
# Extensions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
title: Storage | ||
sidebar_position: 3 | ||
--- | ||
|
||
# Storage | ||
|
||
There are currently 2 options to tasks. Local JSON files is the default option. | ||
|
||
## Local JSON files | ||
|
||
It's the most straightforward way to store tasks and does not require any additional setup. | ||
|
||
Each time a task is created, a new file will be created in `plugins/CommandTimer/timers` with a unique ID associated | ||
with that task. The ID is visible in the global tasks list (`/cmt` command). | ||
|
||
## SQL Database (BETA) | ||
|
||
CommandTimer supports SQL databases since v8.9.0. To use this feature you need to set up the following section in | ||
`config.yml`: | ||
|
||
```yaml | ||
database: | ||
enabled: true | ||
url: jdbc:mysql://localhost:3306/commandtimer?user=root&password=admin | ||
``` | ||
The `url` needs to point to the correct database instance database itself. The plugin will create the necessary tables. | ||
The value `commandtimer` in the example above can be changed to anything you like as long as the database exists. | ||
|
||
Using SQL as storage option will still create local JSON files for each task, but this is only to keep track of specific | ||
metadata that are unique to each server. All other data will be stored in the SQL database. | ||
|
||
**If you already have tasks saved in JSON files, you can use the command `/cmt migrateToDatabase` to move your JSON | ||
files inside the database** |
Oops, something went wrong.