Skip to content

Commit

Permalink
update more things
Browse files Browse the repository at this point in the history
  • Loading branch information
LichtHund committed Jul 10, 2024
1 parent ba4f5f0 commit 7bf0d54
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 10 deletions.
3 changes: 2 additions & 1 deletion triumph-cmds/2.x.x-S/1-started/command-manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ PrefixedCommandManager<PrefixedSender> manager = PrefixedCommandManager.create(j
// JDA slash
SlashCommandManager<SlashSender> manager = SlashCommandManager.create(jda);
```
The type parameter for the sender is necessary because you can also specify your own sender type by passing a custom `SenderMapper`. You can read more about it [here](custom-senders).
The type parameter for the sender is necessary because you can also specify your own sender type by passing a custom `SenderMapper`.
You can read more about it [here](/custom-senders).

# Usage
The command manager is used for doing everything for the commands, registering commands, messages, arguments, etc.
2 changes: 1 addition & 1 deletion triumph-cmds/2.x.x-S/1-started/custom-senders.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ class MyCommand extends BaseCommand {
}
}
```
You can learn how to create and register commands [here](commands).
You can learn how to create and register commands [here](/commands).
2 changes: 1 addition & 1 deletion triumph-cmds/2.x.x-S/1-started/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ dependencies {
}
```

In order to include the lib in your project, you need to add `shadow` plugin `build.gradle.kts`.
To include the lib in your project, you need to add `shadow` plugin `build.gradle.kts`.
Replace `[YOUR PACKAGE]` with your plugin's package, for example `me.myplugin.plugin`.

```kotlin
Expand Down
2 changes: 1 addition & 1 deletion triumph-cmds/2.x.x-S/2-arguments/arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
The concept of arguments in the library are based on parameters, each parameter declared in the method will be a command argument.

# Sender
The first parameter of the command method **must** always be a sender. You can read more about the sender [here](custom-senders).
The first parameter of the command method **must** always be a sender. You can read more about the sender [here](/custom-senders).

# Creating a command with arguments
Let's create the following command `/give item diamond 5`. Where `give` is the command, `item` is the sub command, `diamond` is an argument of type `Material` and `5` is the amount or an `int`.
Expand Down
2 changes: 1 addition & 1 deletion triumph-cmds/2.x.x-S/3-customization/requirements.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
---

# Requirements
Requirements give fine control to determine whether or not a sender is allowed to run a command.
Requirements give fine control to determine whether a sender is allowed to run a command.

## Example of requirements
Firstly, we need to register the requirement.
Expand Down
1 change: 1 addition & 0 deletions triumph-cmds/2.x.x-S/version.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
reference = "2.x.x-S"
recommended = true
stable = false
github = "https://github.com/TriumphTeam/triumph-cmds"
1 change: 1 addition & 0 deletions triumph-cmds/project.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ id = "triumph-cmds"
name = "Triumph CMDs"
color = "#FA5C7E"
projectHome = "https://github.com/TriumphTeam/trumph-cmds"
discord = "https://triumphteam.dev/discord"
2 changes: 1 addition & 1 deletion triumph-gui/3_x_x/1-started/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

---

-+-
-+-
+Gradle (Kotlin)+
You need to add the dependency to your `build.gradle.kts`.

Expand Down
4 changes: 2 additions & 2 deletions triumph-gui/3_x_x/2-types/scrollgui.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ ScrollingGui gui = Gui.scrolling()
The scrollType if not specified will fall back to `ScrollType.VERTICAL`


Just like the normal [GUI](gui) the first parameter is the rows the GUI should have. Like the [Paginated GUI](pagegui) the second parameter is to specify the page size, as in how big the page should be, in the example above it's 45 slots dedicated for the page.
Just like the normal [GUI](/gui) the first parameter is the rows the GUI should have. Like the [Paginated GUI](/pagegui) the second parameter is to specify the page size, as in how big the page should be, in the example above it's 45 slots dedicated for the page.

Everything else about this GUI is exactly like the [Paginated](pagegui).
Everything else about this GUI is exactly like the [Paginated](/pagegui).
5 changes: 3 additions & 2 deletions triumph-gui/3_x_x/2-types/storagegui.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ StorageGui gui = Gui.storage()
.create();
```

Just like the normal [GUI](gui) the first parameter is the rows the GUI should have.
Just like the normal [GUI](/gui) the first parameter is the rows the GUI should have.

# Adding the item to the GUI

Differently to the normal [GUI](gui), the `addItem` method takes an `ItemStack` instead. Any `GuiItem` added will have actions applied to it, the persistent items are simple ItemStacks that have nothing associated to it.
Differently to the normal [GUI](/gui), the `addItem` method takes an `ItemStack` instead. Any `GuiItem` added will have actions applied to it;
the persistent items are simple ItemStacks that have nothing associated to it.
2 changes: 2 additions & 0 deletions triumph-gui/3_x_x/version.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
reference = "3.x.x"
recommended = true
github = "https://github.com/TriumphTeam/triumph-gui"
javadocs = "https://www.javadoc.io/doc/dev.triumphteam/triumph-gui"
1 change: 1 addition & 0 deletions triumph-gui/4_x_x/version.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
reference = "4.x.x"
recommended = false
stable = false
github = "https://github.com/TriumphTeam/triumph-gui/tree/update/v4"
1 change: 1 addition & 0 deletions triumph-gui/project.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ id = "triumph-gui"
name = "Triumph GUI"
color = "#18A88B"
projectHome = "https://github.com/TriumphTeam/trumph-gui"
discord = "https://triumphteam.dev/discord"

0 comments on commit 7bf0d54

Please sign in to comment.