Open
Conversation
modified: .gitignore modified: .run/build_release.run.xml modified: .run/build_snapshot.run.xml modified: README.md modified: build.gradle.kts modified: gradle.properties modified: gradle/libs.versions.toml modified: gradle/wrapper/gradle-wrapper.properties modified: gradlew modified: gradlew.bat modified: settings.gradle.kts new file: src/main/java/ru/joutak/someCoolPlugin/Fight.java new file: src/main/java/ru/joutak/someCoolPlugin/MobDeathListener.java new file: src/main/java/ru/joutak/someCoolPlugin/PlayerDeathListener.java new file: src/main/java/ru/joutak/someCoolPlugin/SomeCoolPlugin.java new file: src/main/java/ru/joutak/someCoolPlugin/Wave.java new file: src/main/java/ru/joutak/someCoolPlugin/WaveEnding.java deleted: src/main/java/ru/joutak/template/EmptyPlugin.java modified: src/main/resources/plugin.yml modified: src/test/java/ru/joutak/test/ExampleTest.java
ArtemBalakin
suggested changes
Feb 28, 2026
| import java.util.*; | ||
|
|
||
| public class Fight{ | ||
| private static ArrayList<Wave> waves = new ArrayList<>(); |
There was a problem hiding this comment.
Подумай что будет если два игрока выполнят твою команду
| public static void clear(){ | ||
| for(Wave w: waves){ | ||
| w.clear(w.linkedTo.getWorld()); | ||
| waves.remove(w); |
| return false; | ||
| } | ||
|
|
||
| public static void endWave(){ |
| this.endCallback = endCallback; | ||
| this.mobCap = mobCap; | ||
| BarStyle style; | ||
| switch(segments){ |
There was a problem hiding this comment.
уверен что тебе нужен такой свитч?
| World world = player.getWorld(); | ||
| Location center = player.getLocation(); | ||
| final int heightBoundary = 10; | ||
| final int attempts = 10; |
| @Override | ||
| public boolean onCommand(CommandSender sender, Command command, String label, String[] args){ | ||
| if(command.getName().equalsIgnoreCase("coolplugin")){ | ||
| if(args.length < 3) { |
| // import Wave; | ||
|
|
||
|
|
||
| public final class SomeCoolPlugin extends JavaPlugin { |
| Location center = player.getLocation(); | ||
| final int heightBoundary = 10; | ||
| final int attempts = 10; | ||
| switch(level){ |
There was a problem hiding this comment.
представь как приятно будет делать 10 уровней
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
И вроде даже работает