File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed
src/main/java/com/faforever/api/data/domain Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ dependencies {
171
171
implementation(" com.yahoo.elide:elide-datastore-jpa:${ elideVersion} " )
172
172
implementation(" com.yahoo.elide:elide-datastore-multiplex:${ elideVersion} " )
173
173
implementation(" org.springdoc:springdoc-openapi-starter-webmvc-ui:${ springdocVersion} " )
174
- implementation(" com.github.FAForever:faf-java-commons:0e5d22ffff6e4dea81bac494d532627fcca8ebc4 " )
174
+ implementation(" com.github.FAForever:faf-java-commons:bc0a20692e599cccb618e0c4346407a13e44464a " )
175
175
implementation(" org.kohsuke:github-api:1.323" )
176
176
implementation(" org.eclipse.jgit:org.eclipse.jgit:6.10.0.202406032230-r" )
177
177
implementation(" org.jetbrains:annotations:24.1.0" )
Original file line number Diff line number Diff line change @@ -30,6 +30,10 @@ public class MatchmakerQueueMapPool extends AbstractEntity<MatchmakerQueueMapPoo
30
30
private Double minRating ;
31
31
private Double maxRating ;
32
32
private MapPool mapPool ;
33
+ // Veto system fields
34
+ private Integer vetoTokensPerPlayer ;
35
+ private Integer maxTokensPerMap ;
36
+ private Float minimalMapsAllowed ;
33
37
34
38
@ ManyToOne (fetch = FetchType .LAZY )
35
39
@ JoinColumn (name = "matchmaker_queue_id" )
@@ -57,4 +61,22 @@ public Double getMaxRating() {
57
61
public MapPool getMapPool () {
58
62
return mapPool ;
59
63
}
64
+
65
+ @ Column (name = "veto_tokens_per_player" )
66
+ @ UpdatePermission (expression = WriteMatchmakerMapCheck .EXPRESSION )
67
+ public Integer getVetoTokensPerPlayer () {
68
+ return vetoTokensPerPlayer ;
69
+ }
70
+
71
+ @ Column (name = "max_tokens_per_map" )
72
+ @ UpdatePermission (expression = WriteMatchmakerMapCheck .EXPRESSION )
73
+ public Integer getMaxTokensPerMap () {
74
+ return maxTokensPerMap ;
75
+ }
76
+
77
+ @ Column (name = "minimal_maps_allowed" )
78
+ @ UpdatePermission (expression = WriteMatchmakerMapCheck .EXPRESSION )
79
+ public Float getMinimalMapsAllowed () {
80
+ return minimalMapsAllowed ;
81
+ }
60
82
}
You can’t perform that action at this time.
0 commit comments