File tree Expand file tree Collapse file tree 2 files changed +33
-11
lines changed
src/main/java/io/github/bakedlibs/dough/protection/modules Expand file tree Collapse file tree 2 files changed +33
-11
lines changed Original file line number Diff line number Diff line change 1313 <artifactId >dough-protection</artifactId >
1414 <packaging >jar</packaging >
1515
16+ <properties >
17+ <plotsquared .version>7.3.6</plotsquared .version>
18+ </properties >
19+
20+ <!-- TODO: Bring down this repo count -->
1621 <repositories >
17- <repository >
18- <id >sonatype-oss-snapshots</id >
19- <url >https://oss.sonatype.org/content/repositories/snapshots/</url >
20- </repository >
2122 <repository >
2223 <id >jitpack.io</id >
2324 <url >https://jitpack.io/</url >
2425 </repository >
26+ <repository >
27+ <id >papermc</id >
28+ <url >https://repo.papermc.io/repository/maven-public/</url >
29+ </repository >
30+ <repository >
31+ <id >sonatype-oss-snapshots</id >
32+ <url >https://oss.sonatype.org/content/repositories/snapshots/</url >
33+ </repository >
2534 <repository >
2635 <id >coreprotect-repo</id >
2736 <url >https://maven.playpro.com/</url >
164173
165174 <!-- PlotSquared -->
166175 <dependency >
167- <groupId >com.plotsquared</groupId >
168- <artifactId >PlotSquared-Core </artifactId >
169- <version >6.11.1 </version >
176+ <groupId >com.intellectualsites. plotsquared</groupId >
177+ <artifactId >plotsquared-core </artifactId >
178+ <version >${plotsquared.version} </version >
170179 <scope >provided</scope >
171180 <exclusions >
172181 <exclusion >
175184 </exclusion >
176185 </exclusions >
177186 </dependency >
187+ <dependency >
188+ <groupId >com.intellectualsites.plotsquared</groupId >
189+ <artifactId >plotsquared-bukkit</artifactId >
190+ <version >${plotsquared.version} </version >
191+ <scope >provided</scope >
192+ <exclusions >
193+ <exclusion >
194+ <artifactId >plotsquared-core</artifactId >
195+ <groupId >*</groupId >
196+ </exclusion >
197+ </exclusions >
198+ </dependency >
178199
179200 <!-- RedProtect -->
180201 <dependency >
Original file line number Diff line number Diff line change 55
66import org .bukkit .OfflinePlayer ;
77import org .bukkit .block .Block ;
8+ import org .bukkit .entity .Player ;
89import org .bukkit .plugin .Plugin ;
910
11+ import com .plotsquared .bukkit .util .BukkitUtil ;
1012import com .plotsquared .core .location .Location ;
1113import com .plotsquared .core .permissions .Permission ;
1214import com .plotsquared .core .player .PlotPlayer ;
1315import com .plotsquared .core .plot .Plot ;
14- import com .plotsquared .core .util .Permissions ;
1516
1617import io .github .bakedlibs .dough .protection .Interaction ;
1718import io .github .bakedlibs .dough .protection .ProtectionModule ;
@@ -53,12 +54,12 @@ private boolean check(OfflinePlayer p, Interaction action) {
5354
5455 switch (action ) {
5556 case INTERACT_BLOCK :
56- return Permissions .hasPermission (player , Permission .PERMISSION_ADMIN_INTERACT_UNOWNED );
57+ return player .hasPermission (Permission .PERMISSION_ADMIN_INTERACT_UNOWNED );
5758 case ATTACK_PLAYER :
58- return Permissions .hasPermission (player , Permission .PERMISSION_ADMIN_PVP );
59+ return player .hasPermission (Permission .PERMISSION_ADMIN_PVP );
5960 case PLACE_BLOCK :
6061 default :
61- return Permissions .hasPermission (player , Permission .PERMISSION_ADMIN_BUILD_UNOWNED );
62+ return player .hasPermission (Permission .PERMISSION_ADMIN_BUILD_UNOWNED );
6263 }
6364 }
6465}
You can’t perform that action at this time.
0 commit comments