GithubHelp home page GithubHelp logo

pvpstats's People

Contributors

chrislane avatar drc-dev avatar ffaen avatar sleiss avatar slipcor avatar teozfrank avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

pvpstats's Issues

plugin version

Hey every time I join the server I see :
Your are using v1.4.18 version, an outdated version! Latest v1.4.19
The plugin has been updated,please restart the server!
btw I already updated the plugin and even if i restart the server he keep telling me this .

Placeholders for placeholders api not working

I have been trying to use the placeholders in a scoreboard, but i haven't been able to get them even when doing
/papi parse
I have tried the ones listed at PlaceholdersAPI's and none seems to resolve
At first i thought it was because i had no stats to display, but even when killing another player and having the data in the database the same still happened

Suggestion

Hey,
Is there any possibility to add new column (assists) in the next version?
Thank you.

Placeholders don't work for offline players

Can you add OfflinePlayer compatibility to the placeholders you provide via placeholderapi?

Because there are plugins which have commands like "/playerinfo " which also get offline players' info, and if I use PAPI placeholders everything works fine but pvpstats throws a nullpointer and does not work. This may be related to the fact that the method for getting the placeholder only works for "Player" and not for OfflinePlayer.

Update?

Is there any update planned? And I would love the idea of SQLite :)

Enhancement - Add a custom command to stop a player killstreak

Have a command that give chance to stop someone killstreak. For example we have a custom command on our server that is /leave so it would be good to be able to stop a player killstreak if he leaves.

Actually, he can leave, select a new Kit and come again in the arena with fresh stuff.

Example: /pvpstats kstop [player]

[Suggestion] Add players to database on join

Hello, I think adding players only when they kill/die in pvp is not good enough. I want new people to be able to do /pvpstats and see their stats (even if it just shows 0). Plus this would fix to an extend the SQLITE problem with null database warning.

1.8 Stats no getting saved sometimes

1.8 plugin version
When i kill a person it sums OK.
But when i do it another, it doesn't sum.
And i get stuck, with no errors, algo on debug mode

Could not pass event EntityDamageByEntityEvent to pvpstats v1.5.3

Hi, I'm receiving this error below on Paper build 387 for 1.15.2:

28.08 00:42:23 [Server] ERROR Could not pass event EntityDamageByEntityEvent to pvpstats v1.5.3
28.08 00:42:23 [Server] INFO java.lang.NullPointerException: null
28.08 00:42:23 [Server] INFO at net.slipcor.pvpstats.classes.PlayerDamageHistory.commitPlayerDamage(PlayerDamageHistory.java:12) ~[?:?]
28.08 00:42:23 [Server] INFO at net.slipcor.pvpstats.listeners.PlayerListener.onPlayerDamage(PlayerListener.java:72) ~[?:?]
28.08 00:42:23 [Server] INFO at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor31.execute(Unknown Source) ~[?:?]
28.08 00:42:23 [Server] INFO at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[patched_1.15.2.jar:git-Paper-387]
28.08 00:42:23 [Server] INFO at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.15.2.jar:git-Paper-387]
28.08 00:42:23 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.15.2.jar:git-Paper-387]
28.08 00:42:23 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:607) ~[patched_1.15.2.jar:git-Paper-387]
28.08 00:42:23 [Server] INFO at org.bukkit.craftbukkit.v1_15_R1.event.CraftEventFactory.callEvent(CraftEventFactory.java:240) ~[patched_1.15.2.jar:git-Paper-387]
28.08 00:42:23 [Server] INFO at org.bukkit.craftbukkit.v1_15_R1.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:874) ~[patched_1.15.2.jar:git-Paper-387]
28.08 00:42:23 [Server] INFO at org.bukkit.craftbukkit.v1_15_R1.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:851) ~[patched_1.15.2.jar:git-Paper-387]
28.08 00:42:23 [Server] INFO at org.bukkit.craftbukkit.v1_15_R1.event.CraftEventFactory.handleLivingEntityDamageEvent(CraftEventFactory.java:1040) ~[patched_1.15.2.jar:git-Paper-387]
28.08 00:42:23 [Server] INFO at net.minecraft.server.v1_15_R1.EntityLiving.damageEntity0(EntityLiving.java:1691) ~[patched_1.15.2.jar:git-Paper-387]
28.08 00:42:23 [Server] INFO at net.minecraft.server.v1_15_R1.EntityHuman.damageEntity0(EntityHuman.java:878) ~[patched_1.15.2.jar:git-Paper-387]
28.08 00:42:23 [Server] INFO at net.minecraft.server.v1_15_R1.EntityLiving.damageEntity(EntityLiving.java:1049) ~[patched_1.15.2.jar:git-Paper-387]
28.08 00:42:23 [Server] INFO at net.minecraft.server.v1_15_R1.EntityHuman.damageEntity(EntityHuman.java:801) ~[patched_1.15.2.jar:git-Paper-387]
28.08 00:42:23 [Server] INFO at net.minecraft.server.v1_15_R1.EntityPlayer.damageEntity(EntityPlayer.java:780) ~[patched_1.15.2.jar:git-Paper-387]
28.08 00:42:23 [Server] INFO at net.minecraft.server.v1_15_R1.Explosion.a(Explosion.java:188) ~[patched_1.15.2.jar:git-Paper-387]
28.08 00:42:23 [Server] INFO at net.minecraft.server.v1_15_R1.World.createExplosion(World.java:1025) ~[patched_1.15.2.jar:git-Paper-387]
28.08 00:42:23 [Server] INFO at net.minecraft.server.v1_15_R1.WorldServer.createExplosion(WorldServer.java:1648) ~[patched_1.15.2.jar:git-Paper-387]
28.08 00:42:23 [Server] INFO at net.minecraft.server.v1_15_R1.World.createExplosion(World.java:1015) ~[patched_1.15.2.jar:git-Paper-387]
28.08 00:42:23 [Server] INFO at net.minecraft.server.v1_15_R1.EntityEnderCrystal.damageEntity(EntityEnderCrystal.java:104) ~[patched_1.15.2.jar:git-Paper-387]
28.08 00:42:23 [Server] INFO at net.minecraft.server.v1_15_R1.EntityHuman.attack(EntityHuman.java:1113) ~[patched_1.15.2.jar:git-Paper-387]
28.08 00:42:23 [Server] INFO at net.minecraft.server.v1_15_R1.EntityPlayer.attack(EntityPlayer.java:1753) ~[patched_1.15.2.jar:git-Paper-387]
28.08 00:42:23 [Server] INFO at net.minecraft.server.v1_15_R1.PlayerConnection.a(PlayerConnection.java:2105) ~[patched_1.15.2.jar:git-Paper-387]
28.08 00:42:23 [Server] INFO at net.minecraft.server.v1_15_R1.PacketPlayInUseEntity.a(PacketPlayInUseEntity.java:51) ~[patched_1.15.2.jar:git-Paper-387]
28.08 00:42:23 [Server] INFO at net.minecraft.server.v1_15_R1.PacketPlayInUseEntity.a(PacketPlayInUseEntity.java:6) ~[patched_1.15.2.jar:git-Paper-387]
28.08 00:42:23 [Server] INFO at net.minecraft.server.v1_15_R1.PlayerConnectionUtils.lambda$ensureMainThread$1(PlayerConnectionUtils.java:23) ~[patched_1.15.2.jar:git-Paper-387]
28.08 00:42:23 [Server] INFO at net.minecraft.server.v1_15_R1.TickTask.run(SourceFile:18) ~[patched_1.15.2.jar:git-Paper-387]
28.08 00:42:23 [Server] INFO at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136) ~[patched_1.15.2.jar:git-Paper-387]
28.08 00:42:23 [Server] INFO at net.minecraft.server.v1_15_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[patched_1.15.2.jar:git-Paper-387]
28.08 00:42:23 [Server] INFO at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109) ~[patched_1.15.2.jar:git-Paper-387]
28.08 00:42:23 [Server] INFO at net.minecraft.server.v1_15_R1.MinecraftServer.ba(MinecraftServer.java:1106) ~[patched_1.15.2.jar:git-Paper-387]
28.08 00:42:23 [Server] INFO at net.minecraft.server.v1_15_R1.MinecraftServer.executeNext(MinecraftServer.java:1099) ~[patched_1.15.2.jar:git-Paper-387]
28.08 00:42:23 [Server] INFO at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:119) ~[patched_1.15.2.jar:git-Paper-387]
28.08 00:42:23 [Server] INFO at net.minecraft.server.v1_15_R1.MinecraftServer.sleepForTick(MinecraftServer.java:1060) ~[patched_1.15.2.jar:git-Paper-387]
28.08 00:42:23 [Server] INFO at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:975) ~[patched_1.15.2.jar:git-Paper-387]
28.08 00:42:23 [Server] INFO at java.lang.Thread.run(Thread.java:748) [?:1.8.0_242]

Announcements and Commands - revamped

Since no-one is complaining about this, I have to. The current way of setting up announcements and commands is very strict and narrow mineded, to a degree where it only makes sense for a fringe minority.

There needs to be a dedicated block for both - that supports the following options:

  • triggers to react to
    • current streak
    • max streak
    • death
    • kill
    • streak ending
  • definition whether the trigger is
    • on value X reached
    • every X triggers
  • restrictions on the trigger based on
    • minimal value
    • maximal value

As this becomes more and more complicated, we might want to look into setting this up with commands, and relying on one YML file per setting that can be combined. However, that is up to the server owner to decide, really.

commands:
  deaths:
    interval:
      '10': 'tellraw %player% You have died %total% times already!'
  kills:
    amount:
      '100': 'tellraw %player% Congratz on your 100th kill!'
announcements:
  streak:
    interval:
      '5': '%player% is on a hunt!'
    amount:
      '100': '%player% is on a streak of 100 - better stop them now!'

Some examples here, I think this makes the most sense in a way that we can suppot the old way and the new way. This can be expanded to be multiline just like before, and I prefer this over a more verbose setup like

announcements:
  [some node indicator]:
    trigger: streak
    interval: 5
    message: '%player% is on a hunt!'
  [next node indicator]:
    trigger: streak
    amount: 100
    message: '%player% killed 100 players in a row!'

I am not sure. I really prefer the numbers being used here instead of stringified integers as keys.

Thoughts, anyone? I am up for totally different solutions :)

SSL mysql error

[13:34:48] [Server thread/INFO]: [pvpstats] Enabling pvpstats v0.8.30 [13:34:48] [Server thread/INFO]: [pvpstats] MySQL Initializing [13:34:48] [Server thread/WARN]: Sun Apr 09 13:34:48 CEST 2017 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification. [13:34:48] [Server thread/INFO]: [pvpstats] MySQL connection successful [13:34:48] [Server thread/INFO]: [pvpstats] enabled. (version 0.8.30)

on other plugins this warning can be hidden by adding"?useSSL=false" behind database name (Mysql). However on your plugin that does not work. Can you fix this? Thanks.

[Issue] Placeholders don't work

They just don't work. I am using PAPI. No errors in console and nothing in debug log. I am using this placeholder for all tests: {pvpstats_kills}.

Placeholder api

Hello, I want to report (suggest) the posibility to change placeholders format.
image

This is the placeholder view and i want to make something more like this

image

MySQL Errors

Ever since we installed this plugin on our server, which would be about 18 hours ago, we've been getting the following errors. For most players it says they don't exist when you /pvpstats them, and kills reset on death along with the killstreak, but deaths don't.

Errors:

At first when I checked the database there were no pvpstats tables created at all, but after reloading the plugin with /pvpstats reload a couple of times, the 'pvpstats' table was created, but contained data for a few players only. The second error kept coming up.

Using Spigot 1.8.8 (3 builds behind the current one, Java 8) and MySQL 5.5.37.

config.yml: http://hastebin.com/ivivirikip.sm
pvpstats v0.8.16 from dev.bukkit.org

[Issue] Command doesn't work.

Hello,

The command for seing someone else's pvpstats isn't working for me. When I type /pvpstats name it brings out the help menu (pvpstats help). No errors in console and nothing in debug (Just 19.09.30 15:24:44 [INFO] [PS-debug] [p:KamosRZ]890 onCommand!).

I am using the latest version on spigot (not the one here on github) - 1.3.7 and my server is running latest paper 1.14.4 - 207

API

Hi, would it be possible to have an API ... Simple things like getKills(), getDeaths(), getRatio() and so on (killstreak.) ... Could be easy ... and helpful ! :)

Thanks in advance,
have a good day

Suggestion - Log victim's UUID in database

Hi,

Hopefully this is a simple suggestion. My server's developers building an API to eventually create my own daily, weekly, and monthly leaderboards plus just an endpoint to retrieve stats for specific players. It would be extremely useful for a victim column in the pvpkillstats containing the victim's UUID.

Thanks,
DoubleCheck

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.