Skip to content
This repository has been archived by the owner on Dec 12, 2022. It is now read-only.

Commit

Permalink
feat: last changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Josscoder committed Jan 22, 2022
1 parent e7f7cee commit 34f1d34
Show file tree
Hide file tree
Showing 4 changed files with 109 additions and 4 deletions.
108 changes: 107 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<img height="300" src="https://i.imgur.com/odwLWJV.png" width="1000" alt=""/>
<img height="300" src="https://i.imgur.com/odwLWJV.png" width="600" alt=""/>

## 🤔 What is this?

Expand Down Expand Up @@ -54,6 +54,112 @@ To observe in a better way, here is a video with the finished game:

[![Watch the video](https://i.imgur.com/w8D2Ty1.png)](https://youtu.be/Rr-WE7pSW_k)

## 🔨 Installation & Setup

- First, download the latest version [here](https://github.com/Josscoder/SquidGame/releases/latest)
- Second, go to the plugins folder of your server and put the previously downloaded file inside.
- Third, restart your server and you can start configuring,

```yml
developmentMode: false #when this is false, the game itself will not work, only developer settings, play sounds and get position are enabled
maxPlayers: 5
minPlayers: 2
maps: # These are all the maps we use
waitingRoomMap:
name: world # This will be the name of the world that will be the waiting room
safeSpawn: 119:14:130 # This will be the center or the place where you always appear
exitEntitySpawn: 122:12:132 # This is the position where the exit entity to the lobby will be
pedestalCenterSpawn: 147:11:129 # This will be the position where you appear in the final stage, when the winner is on the pedestal
pedestalOneSpawn: 156:14:129
pedestalTwoSpawn: 156:13:133
pedestalThreeSpawn: 156:12:125
roomMap:
name: SquidGameRoom
safeSpawn: 0:101:0
greenLightRedLightMap:
name: RedLightGreenLight
safeSpawn: 128:6:103
goalCornerOne: 148:5:149
goalCornerTwo: 108:25:158
dollPosition: 128:6:152 # This will be the position in which the doll appears in the game red light green light
sugarHoneycombsMap:
name: SugarHoneyCombs
safeSpawn: 128:4:128
spawns: # These are the positions of all the rooms where the players appear to break the blocks
'1': 323:4:152
'2': 323:4:109
'3': 286:4:109
'4': 286:4:152
'5': 304:4:130
tugOfWarMap:
name: TugOfWar
safeSpawn: 128:4:128
red:
spawns: # These are the positions where the players appear in the game of Tug of War
'1': 128:17:130
'2': 129:17:130
'3': 130:17:130
'4': 127:17:130
'5': 126:17:130
blue:
spawns:
'1': 128:17:125
'2': 129:17:125
'3': 130:17:125
'4': 127:17:125
'5': 126:17:125
marblesMap:
name: Marbles
safeSpawn: 128:5:128
odd: # This will be the place where the player will stop to say that the number is odd, for this you have to get the upper corner and then the side corner at the bottom, covering the entire area
cornerOne: 130:4:132
cornerTwo: 126:9:136
pair:
cornerOne: 130:4:124
cornerTwo: 126:9:120
hopscotchMap:
name: Hopscotch
safeSpawn: 128:16:152
crystal:
number: 10 # This is the number of glass sections the map will have
sections:
'1':
- 127:15:147 # This is the position of the first crystal
- 129:15:147 # This is the position of the second crystal
'2':
- 127:15:143
- 129:15:143
'3':
- 127:15:139
- 129:15:139
'4':
- 127:15:135
- 129:15:135
'5':
- 127:15:131
- 129:15:131
'6':
- 127:15:127
- 129:15:127
'7':
- 127:15:123
- 129:15:123
'8':
- 127:15:119
- 129:15:119
'9':
- 127:15:115
- 129:15:115
'10':
- 127:15:111
- 129:15:111
goal: # This is the position of the goal, it is recorded just like the game of marbles
cornerOne: 134:13:108
cornerTwo: 120:23:100
```
If you have any questions, contact me through my discord Josscoder#9867 or on my [Twitter](https://twitter.com/Josscoder)
## 📜 LICENSE
This game is licensed under the [Apache License 2.0](https://github.com/Josscoder/SquidGame/blob/main/LICENSE), this game was completely created by Josscoder (Luciano Mejia)
2 changes: 1 addition & 1 deletion src/main/java/jossc/squidgame/SquidGamePlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ private void initGameSettings() {
saveDefaultConfig();

setDevelopmentMode(getConfig().getBoolean("developmentMode"));
setDefaultPlayerGamemode(getConfig().getInt("defaultGamemode"));
setDefaultPlayerGamemode(Player.SURVIVAL);
setMaxPlayers(getConfig().getInt("maxPlayers"));
setMinPlayers(getConfig().getInt("minPlayers"));

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/jossc/squidgame/phase/Marbles.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public List<String> getScoreboardLines(User user) {
List<String> lines = super.getScoreboardLines(user);

int marbles = user.getLocalStorage().getInteger("marbles");
lines.add("\uE14E " + marbles);
lines.add("\uE14E Marbles " + marbles + "/20");

return lines;
}
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
developmentMode: true
defaultGamemode: 0
maxPlayers: 100
minPlayers: 3

Expand Down

0 comments on commit 34f1d34

Please sign in to comment.