Skip to content

Commit

Permalink
add mp ban message
Browse files Browse the repository at this point in the history
  • Loading branch information
GlennnM committed Jun 3, 2024
1 parent 398b0e7 commit 1da6c93
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/java/xyz/hydar/flash/S4Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,9 @@ public void register() {
if(parent.mode==1&&g.player.level()==1)
g.chat("Try using !map and !start if selection options don't appear.",false);
else if(parent.isEvent()) {
if(parent.code!=0) {
if(parent.code==101010) {
g.chat("You are MP banned. Leaderboard scores will not be recorded.", false);
}else if(parent.code!=0) {
g.chat("A special code changed the game type. "
+ "If this was unintentional, change the code.\nMap: "
+ (Arrays.binarySearch(S4Server.EVENT_MAPS,parent.map)+1)
Expand Down Expand Up @@ -990,7 +992,7 @@ else if(FlashUtils.isShort(msg[1]))
}
}case "!unlock"->{
if(parent.started()) {
yield "The game already started()";
yield "The game already started";
}else if(!parent.autostart || (parent.minLvl<0&&parent.maxLvl>100)) {
yield "This lobby already allows all levels";
}else if(id==parent.host) {
Expand Down

0 comments on commit 1da6c93

Please sign in to comment.