Comments (13)
Uhh not sure about this one. I can't remember the last time i fully typed out someones name :P
from hawkreloaded.
the problem appears with short generic names like in the following sitatuation (wheres names are just an example):
Two players built on the server: Griefer and NotAGriefer
Griefer went crazy and ruined the entire town, while NotAGriefer obeyed the rules and didn't ruin anything.
If I were to type /ha rollback p:Griefer I will actually rollback NotAGriefer as well because 'Griefer' is in its name.
It also is a major problem when you have same variations in usernames like Legolas, LegolasTheArcher, Legol, Legolos, ...
If you would roll back the player Legol, it will actually rollback 3 other players along with it.
Basically I discovered the problem after some of the builds went missing of our users. I discovered that I could roll myself (and others as well) with just typing /ha rollback p:q
This made me (q220) rollback, and it would have definatly rolled back a player called 'q', and what I fear is that it highly likely will rollback every username with the letter q in it as well :\
from hawkreloaded.
Oh i didn't know you globally rolledback. Uhh i MIGHT add something like p:"bob7l" which allows the name to be strict. For the time being, do something like /he rollback p:griefer,!notgriefer
from hawkreloaded.
yeah, it was a global rollback. My suggestion is only to be strict to the name when it comes to rollbacks. Like in your example, if i'd want to rollback 'bob7l' only rollback 'bob7l' and have hawkeye not rollback 'minecraftbob7l' or 'bob7lplaysminecraft' or other variations with bob7l in them :p
from hawkreloaded.
Alright i added it to the latest build. 'bob7l' & "bob7l" looked pretty ugly in minecraft text so instead i changed it to *
Example: /he rollback p:*bob7l
from hawkreloaded.
Does that mean that using the wildcard * will make rollbacks for every user whose usernames ends on bob7l, or that it will only rollback the username bob7l?
from hawkreloaded.
It will ONLY rollback the user named bob7l, and ignore everyone else.
from hawkreloaded.
Wouldn't it be better to have it the other way around? That /ha rollback:bob7 would only rollback the player bob7? And have * act like a wildcard? /ha rollback p:bob7 or bob7 would make all usernames rollback who end on bob7 or begin with bob7
from hawkreloaded.
Well almost everyone i know who uses hawkeye uses it directly for the short usernames as they don't like to fully type it out so i like to please the majority. Plus to be honest, i doubt 99/100 hawkeye users even know about the ! flags lol.
from hawkreloaded.
I personally think making the * act as a wildcard would be the best option. Bob if you want I can work on this when I get time.
from hawkreloaded.
Yeah bob7l, I understand how useful it is for short usernames. I run a server which sees a lot of players, and we really use hawkeye on a daily basis to control the damage around. Its only after like years of using Hawkeye that i stumbled upon the issue (after a few legitimate buildings went missing)
The shortname functionality is very handy to have when doing searches, I wouldn't want to see it go at all as well. The only thing that I wanted to bring up was the 'lack of control' you could have in rare cases, where you (and without you knowing) can roll back multiple users because the name isn't used strict enough when doing rollbacks. If hawkeye is setup to remove rolled back entries, you can't really restore or undo the operation anymore when you discovered it too late. Anyway, thanks for listening and considering this :)
from hawkreloaded.
This is old as hell, but still an active issue.
What i'm thinking about doing is checking the hashmap for the player-name. If the hashmap does not contain the name, attempt to find a name LIKE the entered name.
from hawkreloaded.
Finally fixed this issue for you. I somehow managed to misinterpret you throughout this whole conversation xD...
I also optimized the whole lookup process, so there's that.
from hawkreloaded.
Related Issues (20)
- NPE on breaking a bed block HOT 6
- Logging Issue HOT 12
- Issue with Duplicated entry on inserting players into the database HOT 1
- Hawkeye web interface not logging properly HOT 6
- Ingame /he tool logs are different depending on which side of a chest you click on. HOT 3
- Horse Entities not logged
- Armor Stands Not Logged
- Add DataType API for custom DataTypes
- Remove static usage in DataManager HOT 1
- Create a query builder instead of building queries manually HOT 1
- hk search ERROR: NULL HOT 3
- Data truncation: Data too long for column 'player' at row 1
- Unknown column 'world' in 'field list' HOT 5
- Not logging/rolling back mob spawner values HOT 3
- Data_id reached maximum value HOT 4
- Lowest Supported PHP version? HOT 3
- Metrics needs to be updated HOT 2
- Removing block data from databse HOT 4
- SQlite support?
- Web Interface Fatal Error
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 hawkreloaded.