This repository was archived by the owner on Jul 20, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
API/minecraft/src/main/java/tc/oc/api/minecraft Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 1212 */
1313public class DefaultPermissions {
1414
15+ public static final Map <String , Boolean > DEFAULT_PERMISSIONS ;
1516 public static final Map <String , Boolean > PARTICIPANT_PERMISSIONS ;
1617 public static final Map <String , Boolean > OBSERVER_PERMISSIONS ;
1718 public static final Map <String , Boolean > MAPMAKER_PERMISSIONS ;
1819
1920 static {
21+ DEFAULT_PERMISSIONS = new ImmutableMap .Builder <String , Boolean >()
22+ // Global
23+ .put ("ocn.login" , true )
24+ // Tournament
25+ .put ("tourney.ready" , true )
26+ .build ();
27+
2028 PARTICIPANT_PERMISSIONS = new ImmutableMap .Builder <String , Boolean >()
2129 // Global
2230 .put ("worldedit.navigation.jumpto.tool" , false )
@@ -67,7 +75,6 @@ public class DefaultPermissions {
6775 .put ("worldedit.navigation.*" , true )
6876 .build ();
6977
70-
7178 MAPMAKER_PERMISSIONS = new ImmutableMap .Builder <String , Boolean >()
7279 // Public
7380 .put ("map.rating.view.live" , true )
Original file line number Diff line number Diff line change 1414import tc .oc .api .docs .SimplePlayerId ;
1515import tc .oc .api .docs .User ;
1616import tc .oc .api .docs .virtual .UserDoc ;
17+ import tc .oc .api .minecraft .servers .DefaultPermissions ;
1718import tc .oc .api .util .Permissions ;
1819import tc .oc .api .util .UUIDs ;
1920import tc .oc .minecraft .api .entity .OfflinePlayer ;
@@ -90,9 +91,7 @@ public String mc_last_sign_in_ip() {
9091 @ Override
9192 public Map <String , Map <String , Boolean >> mc_permissions_by_realm () {
9293 return ImmutableMap .of (
93- "global" , ImmutableMap .of (
94- Permissions .LOGIN , true
95- )
94+ "global" , DefaultPermissions .DEFAULT_PERMISSIONS
9695 );
9796 }
9897
You can’t perform that action at this time.
0 commit comments