Skip to content
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

Need some help to implement ArcadeMode on BattleArena #90

Open
Hideman85 opened this issue Jun 5, 2017 · 1 comment
Open

Need some help to implement ArcadeMode on BattleArena #90

Hideman85 opened this issue Jun 5, 2017 · 1 comment

Comments

@Hideman85
Copy link

Hello,

First I love this plugin it's fully MiniGame API for Minecraft easy to use and many useful features.
So I want to implement Arcade Mode what is it ?
It's just an «Competition» witch chose randomly a new ArenaType for next Match ( like join sign chose nex arena for ArenaType and place player to queue )
And I want just when Match is finished ArcadeMode add all off Players ( winners, looser and spectate ) to new Match chose again randomly.

I think I can implement this but I don't know where I can start ....
Arcade extends Event ? Match ? Competition ? and why ?
How link to new ArenaCommandSign ?
Or it's same thing as TournamentEvent ?

I am a little lost .... So if you can help me I would be grateful ;)

@Europia79
Copy link

Another name for this is Medley: playing different game modes.

First, you have to realize that every server is different.
Each server has different mini-games installed.
So, the first thing you'll have to do is determine what mini-games are available.

In order to do that, I would trace thru BatteArena.registerCompetition() and see where it saves its information.

https://github.com/BattlePlugins/BattleArena/blob/master/src/java/mc/alk/arena/BattleArena.java#L697
https://github.com/BattlePlugins/BattleArena/blob/master/src/java/mc/alk/arena/BattleArena.java#L710
https://github.com/BattlePlugins/BattleArena/blob/master/src/java/mc/alk/arena/BattleArena.java#L723
https://github.com/BattlePlugins/BattleArena/blob/master/src/java/mc/alk/arena/BattleArena.java#L737

There are four of them (they're overloaded). But it looks like they all create a new APIRegistrationController object and foward the information to its registerCompetition method.

https://github.com/BattlePlugins/BattleArena/blob/master/src/java/mc/alk/arena/controllers/APIRegistrationController.java#L43
https://github.com/BattlePlugins/BattleArena/blob/master/src/java/mc/alk/arena/controllers/APIRegistrationController.java#L122
https://github.com/BattlePlugins/BattleArena/blob/master/src/java/mc/alk/arena/controllers/APIRegistrationController.java#L126
https://github.com/BattlePlugins/BattleArena/blob/master/src/java/mc/alk/arena/controllers/APIRegistrationController.java#L136
https://github.com/BattlePlugins/BattleArena/blob/master/src/java/mc/alk/arena/controllers/APIRegistrationController.java#L143
https://github.com/BattlePlugins/BattleArena/blob/master/src/java/mc/alk/arena/controllers/APIRegistrationController.java#L157

Just skimming thru it real quick, it looks like that some of the information is saved inside CompetitionController. It may or may not contain enough information for your needs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants