Skip to content

Commit f38ee3e

Browse files
committedDec 14, 2022
Disabled Floodgate.
1 parent 17e7022 commit f38ee3e

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed
 

‎api/receptacle/build.gradle.kts

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ dependencies {
3737
compileOnly("ink.ptms:nms-all:1.0.0")
3838
compileOnly("ink.ptms.core:v11900:11900-minimize:universal")
3939
compileOnly("ink.ptms.core:v11900:11900-minimize:mapped")
40-
compileOnly("org.geysermc.floodgate:api:2.2.1-SNAPSHOT")
4140
compileOnly(fileTree("libs"))
4241
}
4342

‎api/receptacle/src/main/kotlin/trplugins/menu/api/receptacle/hook/HookFloodgate.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package trplugins.menu.api.receptacle.hook
22

33
import org.bukkit.Bukkit
44
import org.bukkit.entity.Player
5-
import org.geysermc.floodgate.api.FloodgateApi
65

76
/**
87
* TrMenu
@@ -14,7 +13,8 @@ import org.geysermc.floodgate.api.FloodgateApi
1413
class HookFloodgate private constructor() {
1514

1615
fun isBedrockPlayer(player: Player): Boolean {
17-
return FloodgateApi.getInstance().isFloodgatePlayer(player.uniqueId)
16+
// return FloodgateApi.getInstance().isFloodgatePlayer(player.uniqueId)
17+
return false
1818
}
1919

2020
companion object {

‎plugin/build.gradle.kts

-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ dependencies {
7777
compileOnly("ink.ptms.core:v11604:11604")
7878

7979
// Hook Plugins
80-
compileOnly("org.geysermc.floodgate:api:2.2.1-SNAPSHOT") { isTransitive = false }
8180
compileOnly("me.clip:placeholderapi:2.10.9") { isTransitive = false }
8281
compileOnly("ink.ptms:Zaphkiel:1.6.0") { isTransitive = false }
8382
compileOnly("ca.tweetzy:skulls:2.7.2") { isTransitive = false }

‎plugin/src/main/kotlin/trplugins/menu/module/internal/hook/impl/HookFloodgate.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package trplugins.menu.module.internal.hook.impl
22

33
import trplugins.menu.module.internal.hook.HookAbstract
44
import org.bukkit.entity.Player
5-
import org.geysermc.floodgate.api.FloodgateApi
65

76
/**
87
* @author Arasple
@@ -11,7 +10,8 @@ import org.geysermc.floodgate.api.FloodgateApi
1110
class HookFloodgate : HookAbstract() {
1211

1312
fun isBedrockPlayer(player: Player): Boolean {
14-
return if (checkHooked()) FloodgateApi.getInstance().isFloodgatePlayer(player.uniqueId) else false
13+
// return if (checkHooked()) FloodgateApi.getInstance().isFloodgatePlayer(player.uniqueId) else false
14+
return false
1515
}
1616

1717
override fun getPluginName(): String {

‎plugin/src/main/kotlin/trplugins/menu/module/internal/script/js/Assist.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,9 @@ class Assist {
311311
/**
312312
* Hook
313313
*/
314-
fun isBedrockPlayer(player: Player): Boolean {
314+
/*fun isBedrockPlayer(player: Player): Boolean {
315315
return HookPlugin.getFloodgate().isBedrockPlayer(player)
316-
}
316+
}*/
317317

318318

319319
/**

0 commit comments

Comments
 (0)
Please sign in to comment.