-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from Epicjii/dev
1.19.1 and Gui upgrade
- Loading branch information
Showing
14 changed files
with
288 additions
and
185 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,5 @@ | ||
# Manhunt_Plugin | ||
|
||
This Plugin is for Paper 1.17.1 and 1.18.1 | ||
This Plugin is for Paper 1.17.1 - 1.19 | ||
|
||
Here is a good guide to installing this plugin: https://pingperfect.com/index.php/knowledgebase/829/Minecraft--PaperMC--How-to-install-plugins.html | ||
|
||
First run /hunters [list of hunters] to set the hunters for the game. | ||
|
||
Make sure when running the command that only one person runs the command. | ||
|
||
Run /target [target] to set the huntee and begins the game | ||
|
||
To end the hunt run /endhunt. The command should remove the compasses. | ||
Here is a good guide to installing this plugin: https://pingperfect.com/index.php/knowledgebase/829/Minecraft--PaperMC--How-to-install-plugins.html |
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
27 changes: 27 additions & 0 deletions
27
src/main/java/plugin/manhunt/manhunt_plugin/commands/CreateGame.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,27 @@ | ||
package plugin.manhunt.manhunt_plugin.commands; | ||
|
||
import org.bukkit.command.Command; | ||
import org.bukkit.command.CommandExecutor; | ||
import org.bukkit.command.CommandSender; | ||
import org.bukkit.entity.Player; | ||
import org.jetbrains.annotations.NotNull; | ||
import plugin.manhunt.manhunt_plugin.gui.TargetGui; | ||
|
||
public class CreateGame implements CommandExecutor { | ||
|
||
@Override | ||
public boolean onCommand( | ||
@NotNull CommandSender sender, | ||
@NotNull Command command, | ||
@NotNull String label, | ||
@NotNull String[] args) { | ||
|
||
if (!(sender instanceof Player)) { | ||
return false; | ||
} | ||
|
||
TargetGui targetGui = new TargetGui(); | ||
targetGui.openNewGui((Player) sender); | ||
return true; | ||
} | ||
} |
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
44 changes: 0 additions & 44 deletions
44
src/main/java/plugin/manhunt/manhunt_plugin/commands/Hunters.java
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
src/main/java/plugin/manhunt/manhunt_plugin/commands/JoinGame.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,25 @@ | ||
package plugin.manhunt.manhunt_plugin.commands; | ||
|
||
import org.bukkit.command.Command; | ||
import org.bukkit.command.CommandExecutor; | ||
import org.bukkit.command.CommandSender; | ||
import org.bukkit.entity.Player; | ||
import org.jetbrains.annotations.NotNull; | ||
import plugin.manhunt.manhunt_plugin.gui.JoinGui; | ||
|
||
public class JoinGame implements CommandExecutor { | ||
|
||
@Override | ||
public boolean onCommand( | ||
@NotNull CommandSender sender, | ||
@NotNull Command command, | ||
@NotNull String label, | ||
@NotNull String[] args) { | ||
|
||
JoinGui joinGui = new JoinGui(); | ||
joinGui.openNewGui((Player) sender); | ||
|
||
|
||
return true; | ||
} | ||
} |
50 changes: 0 additions & 50 deletions
50
src/main/java/plugin/manhunt/manhunt_plugin/commands/ListGames.java
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
src/main/java/plugin/manhunt/manhunt_plugin/commands/Target.java
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
src/main/java/plugin/manhunt/manhunt_plugin/game/GameData.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,16 @@ | ||
package plugin.manhunt.manhunt_plugin.game; | ||
|
||
import java.util.ArrayList; | ||
|
||
public class GameData { | ||
public ArrayList<ManhuntGame> currentGames = new ArrayList<>(); | ||
|
||
public void addGame(ManhuntGame game) { | ||
currentGames.add(game); | ||
} | ||
|
||
public void removeGame(ManhuntGame game) { | ||
currentGames.remove(game); | ||
} | ||
|
||
} |
Oops, something went wrong.