ModsJava
Minigames-Api
Minecraft Java mod. Downloads from the MC Java Mods app on Android.
⬇ Download on SpigotThis a Api that makes Coding Minigames Plugins easier.
Features
-Config
-Teams
-MySQL
-Stats System (Use MySQL)
How To Install
1. Go to Properties from your Projekt.
2. Go to Java Build Path.
3. Click on "Add External Jars"
4. Select the Minigames Api.jar
How To Use
Information
1. You Can See the SourceCode
2. If you have some ideas or improvements then send them me.
Features
-Config
-Teams
-MySQL
-Stats System (Use MySQL)
How To Install
1. Go to Properties from your Projekt.
2. Go to Java Build Path.
3. Click on "Add External Jars"
4. Select the Minigames Api.jar
Spoiler: Image
How To Use
Spoiler: Team
Team TutorialTeam = new Team(TeamName);
--Creates new Team
Team.joinRandomTeam(Player)
--The player joins the team with
fewest player
TutorialTeam.containsPlayer(player)
--Returns true if player in Team
TutorialTeam.leaveTeam(player)
--Remove Player from Team
TutorialTeam.JoinTeam(player)
--Add Player to Team
TutorialTeam.setColor(color);
--Set the Color From Team
TutorialTeam.setCanBreak(canBreak);
--Set Block Breaking On/Off
--Set Interact with world On/Off
TutorialTeam.setCanInteract(canInteract);
--Set Block Placeing On/Off
TutorialTeam.setCanPlace(canPlace);
--Get a Array of Player in the Team
TutorialTeam.getPlayers();
--Set FriendlyFire On/Off
TutorialTeam.setFriendlyFire(friendlyFire);
--Set Returns Spawn
TutorialTeam.getSpawn();
--Set the spawn Location
TutorialTeam.setSpawn(Location);
Code (Text):
Team TutorialTeam = new Team(TeamName);
--Creates new Team
Team.joinRandomTeam(Player)
--The player joins the team with
fewest player
TutorialTeam.containsPlayer(player)
--Returns true if player in Team
TutorialTeam.leaveTeam(player)
--Remove Player from Team
TutorialTeam.JoinTeam(player)
--Add Player to Team
TutorialTeam.setColor(color);
--Set the Color From Team
TutorialTeam.setCanBreak(canBreak);
--Set Block Breaking On/Off
--Set Interact with world On/Off
TutorialTeam.setCanInteract(canInteract);
--Set Block Placeing On/Off
TutorialTeam.setCanPlace(canPlace);
--Get a Array of Player in the Team
TutorialTeam.getPlayers();
--Set FriendlyFire On/Off
TutorialTeam.setFriendlyFire(friendlyFire);
--Set Returns Spawn
TutorialTeam.getSpawn();
--Set the spawn Location
TutorialTeam.setSpawn(Location);
Spoiler: Config
--New Config in Plugin Folder
Config TutorialConfig = new Config(filename, pluginname);
--New Config in Plugin Folder + Extra Folder
Config TutorialConfig = new Config(filename, pluginname, Folder);
--Creates the File
TutorialConfig.create();
--Deletes the File
TutorialConfig.delete();
--Add location to Config
TutorialConfig.addLocation(LocationName, location);
--Returns Location
--Returns with Yaw and Ptich if yawandpitch == true
TutorialConfig.getLocation(LocationName, yawandpitch)
--Can Interact with Yml Methods
TutorialConfig.getConfig()
Code (Text):
--New Config in Plugin Folder
Config TutorialConfig = new Config(filename, pluginname);
--New Config in Plugin Folder + Extra Folder
Config TutorialConfig = new Config(filename, pluginname, Folder);
--Creates the File
TutorialConfig.create();
--Deletes the File
TutorialConfig.delete();
--Add location to Config
TutorialConfig.addLocation(LocationName, location);
--Returns Location
--Returns with Yaw and Ptich if yawandpitch == true
TutorialConfig.getLocation(LocationName, yawandpitch)
--Can Interact with Yml Methods
TutorialConfig.getConfig()
Spoiler: Stats
--Creates new Stats
--Use Mysql
Stats TutorialStats = new Stats(mysql, tablename);
--Returns the stat from player
TutorialStats.getStat(player, stat);
--Set the stat from Player
TutorialStats.setStat(player, stat, statvalue);
Code (Text):
--Creates new Stats
--Use Mysql
Stats TutorialStats = new Stats(mysql, tablename);
--Returns the stat from player
TutorialStats.getStat(player, stat);
--Set the stat from Player
TutorialStats.setStat(player, stat, statvalue);
Spoiler: MySql
--Creates new MySql
MySQL TutorialMySQL = new MySQL(host, port, user, password, database);
-- Close the Connection
TutorialMySQL.closeConnection();
-- Close open Ressources
TutorialMySQL.closeRessources(rs, st);
--Makes a Query update
TutorialMySQL.queryUpdate(query);
--Open the Connection
TutorialMySQL.openConnection();
Code (Text):
--Creates new MySql
MySQL TutorialMySQL = new MySQL(host, port, user, password, database);
-- Close the Connection
TutorialMySQL.closeConnection();
-- Close open Ressources
TutorialMySQL.closeRessources(rs, st);
--Makes a Query update
TutorialMySQL.queryUpdate(query);
--Open the Connection
TutorialMySQL.openConnection();
Spoiler: ScoreBoard
--Creates new ScoreBoard
CustomScoreboard TutorialScoreboard = new CustomScoreboard(Name, displaySlot);
--Sets the Scoreboard for the Player
TutorialScoreboard.setScoreboard(player);
--Sets the Scoreboard for all Player from Team
TutorialScoreboard.setScoreboard(team);
-Get Score
TutorialScoreboard.getScore(name)
--Sets Score
TutorialScoreboard.setScore(name, value)
Code (Text):
--Creates new ScoreBoard
CustomScoreboard TutorialScoreboard = new CustomScoreboard(Name, displaySlot);
--Sets the Scoreboard for the Player
TutorialScoreboard.setScoreboard(player);
--Sets the Scoreboard for all Player from Team
TutorialScoreboard.setScoreboard(team);
-Get Score
TutorialScoreboard.getScore(name)
--Sets Score
TutorialScoreboard.setScore(name, value)
Spoiler: Arena
--Creates new Arena
Arena TutorialArena = new Arena(X1, Y1, Z1, X2, Y2, Z2, world, name);
--Creates new Arena with WorldEdit Cords from Player
Arena TutorialArena = new Arena(Player, name);
--Save the Arena area
TutorialArena.save();
--Save the Arena area to specific File
TutorialArena.save(Filename);
--Load the Arena area to specific File
TutorialArena.load(Filename);
--Reset the Arena area
TutorialArena.reset()
--Set Block Breaking On/Off
TutorialArena.setCanBreak(canBreak);
--Set Interact with world On/Off
TutorialArena.setCanInteract(canInteract);
--Set Block Placeing On/Off
TutorialArena.setCanPlace(canPlace);
--Returns if Player int
TutorialArena.isPlayerIn(player);
--Set Returns Spawn
TutorialTeam.getSpawn();
--Set the spawn Location
TutorialTeam.setSpawn(Location);
--Set Returns Location by name
TutorialTeam.getLocation(Name);
--Set the Location by name
TutorialTeam.setLocation(Name, Location);
--Return a Hashmap with all Locations
TutorialTeam.getLocations();
--Finds a Player from all Areanas
TutorialTeam.findPlayer(Player)
Code (Text):
--Creates new Arena
Arena TutorialArena = new Arena(X1, Y1, Z1, X2, Y2, Z2, world, name);
--Creates new Arena with WorldEdit Cords from Player
Arena TutorialArena = new Arena(Player, name);
--Save the Arena area
TutorialArena.save();
--Save the Arena area to specific File
TutorialArena.save(Filename);
--Load the Arena area to specific File
TutorialArena.load(Filename);
--Reset the Arena area
TutorialArena.reset()
--Set Block Breaking On/Off
TutorialArena.setCanBreak(canBreak);
--Set Interact with world On/Off
TutorialArena.setCanInteract(canInteract);
--Set Block Placeing On/Off
TutorialArena.setCanPlace(canPlace);
--Returns if Player int
TutorialArena.isPlayerIn(player);
--Set Returns Spawn
TutorialTeam.getSpawn();
--Set the spawn Location
TutorialTeam.setSpawn(Location);
--Set Returns Location by name
TutorialTeam.getLocation(Name);
--Set the Location by name
TutorialTeam.setLocation(Name, Location);
--Return a Hashmap with all Locations
TutorialTeam.getLocations();
--Finds a Player from all Areanas
TutorialTeam.findPlayer(Player)
Spoiler: Countdown
--Creates new Countdown
--Countdowntimes are the time when displayed use a Array
--like [1,2,3,4,5,10,15] and when then countdown reach
--this value the message comes
Countdown TutorialCountdown = new Countdown(Countdowntimes, Startvalue);
Countdown TutorialCountdown = new Countdown(Countdowntimes, Startvalue, Player[] players);
Countdown TutorialCountdown = new Countdown(Countdowntimes, Startvalue, Team team);
--Starts Countdown for all Player on server
-- Placeing %time% in message will be replaced with the CurentCount
TutorialCountdown.StartForAll(message);
--Starts for All Player there was Set in the Constructor
TutorialCountdown.StartForPlayers(message);
--Stop the Countdown
TutorialCountdown.Stop();
--Use Title for Countdown
TutorialCountdown.setUseTitle(useTitle);
--Use Xp for Countdown
TutorialCountdown.setUseXp(useXp);
--Set the color for the Title
TutorialCountdown.setTitleColor(titleColor);
MinigamesApi.countDownEvent.registeCountDownEvent(listener.class);
--Listener.class = implements CountdownEventListener
--In the method CountdownEventOccurred goes you code when finshed the countdown
Code (Text):
--Creates new Countdown
--Countdowntimes are the time when displayed use a Array
--like [1,2,3,4,5,10,15] and when then countdown reach
--this value the message comes
Countdown TutorialCountdown = new Countdown(Countdowntimes, Startvalue);
Countdown TutorialCountdown = new Countdown(Countdowntimes, Startvalue, Player[] players);
Countdown TutorialCountdown = new Countdown(Countdowntimes, Startvalue, Team team);
--Starts Countdown for all Player on server
-- Placeing %time% in message will be replaced with the CurentCount
TutorialCountdown.StartForAll(message);
--Starts for All Player there was Set in the Constructor
TutorialCountdown.StartForPlayers(message);
--Stop the Countdown
TutorialCountdown.Stop();
--Use Title for Countdown
TutorialCountdown.setUseTitle(useTitle);
--Use Xp for Countdown
TutorialCountdown.setUseXp(useXp);
--Set the color for the Title
TutorialCountdown.setTitleColor(titleColor);
MinigamesApi.countDownEvent.registeCountDownEvent(listener.class);
--Listener.class = implements CountdownEventListener
--In the method CountdownEventOccurred goes you code when finshed the countdown
Spoiler: Kit
--Creates Kit
Kit TutorialKit = new Kit();
--Gives the kit a Player
TutorialKit.giveKit(Player)
--Adds a Item to the kit
TutorialKit.addItem(Slot, Item)
Code (Text):
--Creates Kit
Kit TutorialKit = new Kit();
--Gives the kit a Player
TutorialKit.giveKit(Player)
--Adds a Item to the kit
TutorialKit.addItem(Slot, Item)
Spoiler: Slots
Information
1. You Can See the SourceCode
2. If you have some ideas or improvements then send them me.
Quick facts
- Edition: Minecraft Java
- File type: .jar
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
Minigames-Api is a free Minecraft Java mod. Downloaded 7,594 times (via Spigot). Download it and open it directly in the game.