-
-
Notifications
You must be signed in to change notification settings - Fork 446
Fishing event additions #7683
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
Merged
APickledWalrus
merged 18 commits into
SkriptLang:dev/feature
from
TheMug06:feature-fishing
Apr 1, 2025
Merged
Fishing event additions #7683
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
7939ade
Update FishingModule.java
TheMug06 747ada8
Update EvtFish.java
TheMug06 bc9b1d2
Update default.lang
TheMug06 fc64a08
Update EvtFish.java
TheMug06 9326f2f
Update EvtFish.java
TheMug06 b82ae83
Update EvtFish.java
TheMug06 dc81f65
Update EvtFish.java
TheMug06 d445044
Update src/main/java/org/skriptlang/skript/bukkit/fishing/FishingModu…
TheMug06 cff85f4
Update EvtFish.java
TheMug06 105a02e
Removes unnecessary buildPatterns(), adds back null check
TheMug06 8467b0e
Fixes imports and .since error
TheMug06 ec92f76
Fixes issue with STATE_CHANGE registrations
TheMug06 fdcdf20
Update EvtFish.java
TheMug06 b5a9671
Merge branch 'dev/feature' into feature-fishing
sovdeeth 5d4527e
Merge branch 'dev/feature' into feature-fishing
TheMug06 2736c4a
Update EvtFish.java
TheMug06 08bff7b
Register classes before syntax
APickledWalrus 8739df8
Merge branch 'dev/feature' into feature-fishing
APickledWalrus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
12 changes: 11 additions & 1 deletion
12
src/main/java/org/skriptlang/skript/bukkit/fishing/FishingModule.java
This file contains hidden or 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,13 +1,23 @@ | ||
| package org.skriptlang.skript.bukkit.fishing; | ||
|
|
||
| import ch.njol.skript.Skript; | ||
| import ch.njol.skript.classes.EnumClassInfo; | ||
| import ch.njol.skript.registrations.Classes; | ||
| import org.bukkit.event.player.PlayerFishEvent; | ||
|
|
||
| import java.io.IOException; | ||
|
|
||
| public class FishingModule { | ||
|
|
||
| public static void load() throws IOException { | ||
| // Register the Fishing State enum as a Skript type | ||
| Classes.registerClass(new EnumClassInfo<>(PlayerFishEvent.State.class, "fishingstate", "fishing states") | ||
| .user("fishing ?states?") | ||
| .name("Fishing State") | ||
| .description("Represents the different states of a fishing event.") | ||
| .since("INSERT VERSION") | ||
| ); | ||
|
|
||
| Skript.getAddonInstance().loadClasses("org.skriptlang.skript.bukkit.fishing", "elements"); | ||
| } | ||
|
|
||
| } | ||
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.