Comments (5)
This is very unlikely to be happening with just calls to getVanishedPlayers
and isPlayerVanished
, the whole plugin would not work correctly if these two methods did not return the correct values. Could you please show me how you are calling them? Thanks.
from advancedvanish.
I'm calling it using this code: AdvancedVanishAPI.INSTANCE.getVanishedPlayers()
. I found it weird that I had to use AdvancedVanishAPI.INSTANCE
to call anything in the API rather than just AdvancedVanishAPI.method
. I followed all of the instructions to install it on the wiki.
from advancedvanish.
You need to use AdvancedVanishAPI.INSTANCE
because AdvancedVanishAPI
is a Kotlin object and you are accessing it in Java. That is fine though (assuming that you have depend: [AdvancedVanish]
in your plugin.yml). Could you please use /vanish and then show the output of AdvancedVanishAPI.INSTANCE.getVanishedPlayers().size()
?
from advancedvanish.
I see, that makes sense. AdvancedVanishAPI.INSTANCE.getVanishedPlayers().size()
always outputs 0
no matter if I am in vanish or not. I am using softdepend: [AdvancedVanish]
but I don't think that should be an issue.
from advancedvanish.
The problem was that he was shading the whole AdvancedVanish plugin into his plugin, so he was accessing a different instance of it. Closing this as completed now.
from advancedvanish.
Related Issues (20)
- Vanish Priority Bug
- Support for gmsp HOT 2
- Toggleable "When Vanished" feature HOT 3
- Vanished players are able to be messaged with ChatControlRed HOT 11
- DiscordSRV issue HOT 6
- ChatControlRed support
- Vanish Toggle Command HOT 3
- Vanished Players are not removed from the tab list even when ProtocolLib is installed HOT 2
- Essentials Hook Issue?
- DiscordSRV can't process player count placeholder HOT 4
- Please add support for interactive chat discordsrv HOT 1
- Plugins can't hook into Advanced Vanish HOT 5
- Folia Support for AdvancedVanish? HOT 2
- Vanish interacts when vanished HOT 1
- Error reloading plugin and disables in console when enabling SQL HOT 2
- [Issue] Deprecated Commands HOT 4
- Plugin Error After installation. HOT 3
- [BUG] leave message HOT 2
- Question: Do players actually vanish? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from advancedvanish.