-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/sign-command-editor
- Loading branch information
Showing
151 changed files
with
1,882 additions
and
785 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ jobs: | |
fail-fast: false | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].2 | ||
- name: 'Set up JDK ${{ matrix.java }}' | ||
uses: actions/[email protected] | ||
with: | ||
|
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
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ plugins { | |
} | ||
|
||
group = "com.eternalcode" | ||
version = "1.4.0" | ||
version = "1.5.2" | ||
|
||
java { | ||
withSourcesJar() | ||
|
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
10 changes: 0 additions & 10 deletions
10
eternalcore-api/src/main/java/com/eternalcode/core/delay/DelaySettings.java
This file was deleted.
Oops, something went wrong.
41 changes: 41 additions & 0 deletions
41
...core-api/src/main/java/com/eternalcode/core/feature/butcher/ButcherEntityRemoveEvent.java
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,41 @@ | ||
package com.eternalcode.core.feature.butcher; | ||
|
||
import org.bukkit.entity.Entity; | ||
import org.bukkit.event.Cancellable; | ||
import org.bukkit.event.Event; | ||
import org.bukkit.event.HandlerList; | ||
|
||
public class ButcherEntityRemoveEvent extends Event implements Cancellable { | ||
|
||
private static final HandlerList HANDLER_LIST = new HandlerList(); | ||
|
||
private boolean cancelled; | ||
private final Entity entity; | ||
|
||
public ButcherEntityRemoveEvent(Entity entity) { | ||
this.entity = entity; | ||
} | ||
|
||
@Override | ||
public boolean isCancelled() { | ||
return cancelled; | ||
} | ||
|
||
@Override | ||
public void setCancelled(boolean cancelled) { | ||
this.cancelled = cancelled; | ||
} | ||
|
||
public Entity getEntity() { | ||
return entity; | ||
} | ||
|
||
@Override | ||
public HandlerList getHandlers() { | ||
return HANDLER_LIST; | ||
} | ||
|
||
public static HandlerList getHandlerList() { | ||
return HANDLER_LIST; | ||
} | ||
} |
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
9 changes: 9 additions & 0 deletions
9
eternalcore-api/src/main/java/com/eternalcode/core/feature/language/LanguageProvider.java
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,9 @@ | ||
package com.eternalcode.core.feature.language; | ||
|
||
import java.util.UUID; | ||
|
||
public interface LanguageProvider { | ||
|
||
Language getDefaultLanguage(UUID player); | ||
|
||
} |
17 changes: 13 additions & 4 deletions
17
eternalcore-api/src/main/java/com/eternalcode/core/feature/language/LanguageService.java
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,11 +1,20 @@ | ||
package com.eternalcode.core.feature.language; | ||
|
||
import java.util.Locale; | ||
import org.bukkit.entity.Player; | ||
import java.util.UUID; | ||
import java.util.concurrent.CompletableFuture; | ||
|
||
public interface LanguageService { | ||
|
||
Locale getPlayerLanguage(Player player); | ||
void setDefaultProvider(LanguageProvider defaultProvider); | ||
|
||
LanguageProvider getDefaultProvider(); | ||
|
||
CompletableFuture<Language> getLanguage(UUID playerUniqueId); | ||
|
||
Language getLanguageNow(UUID playerUniqueId); | ||
|
||
CompletableFuture<Void> setLanguage(UUID playerUniqueId, Language language); | ||
|
||
CompletableFuture<Void> setDefaultLanguage(UUID playerUniqueId); | ||
|
||
void setPlayerLanguage(Player player, Locale locale); | ||
} |
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
Oops, something went wrong.