Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite UUID upgrade code using Mojang API #774

Open
wants to merge 4,328 commits into
base: 2.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
4328 commits
Select commit Hold shift + click to select a range
0384ac5
Travis - use Maven to build
chrisgward Dec 25, 2013
1d791fb
Remove Ant, migrate Netbeans code style to pom.xml
chrisgward Dec 26, 2013
12c96e2
Use the Essentials Maven repository
chrisgward Dec 28, 2013
58440dd
Add deploy plugin
chrisgward Dec 28, 2013
4669187
Add permission: essentials.msg.multiple and essentials.pay.multiple
khobbits Dec 28, 2013
99d25bf
Fix NB parent compiling
khobbits Dec 28, 2013
0b71b6e
Remove redundant permission check.
khobbits Dec 31, 2013
d48c020
Add and implement sign break/create/interact events to EssAPI
khobbits Dec 31, 2013
3fecd31
Check command cost, before running kit delay check, prevent accidenta…
khobbits Jan 3, 2014
3b0e86a
Add an upload-only pom file for GroupManager
chrisgward Jan 5, 2014
8c882a5
Reset Exhaustion on /feed
Pocketkid2 Jan 8, 2014
4084445
Config description cleanup.
khobbits Jan 11, 2014
eee18f4
Pass optional location parameters to teleport TL keys.
khobbits Jan 12, 2014
f39ef36
Fix hidden groups in /list
khobbits Jan 14, 2014
839bfe0
Update to Bukkit Development Builds
chrisgward Jan 20, 2014
9ce1158
Add support for vanilla JSON metadata syntax (/give, /i, /kit, etc.)
chrisgward Jan 20, 2014
32b118d
Add fullstops for @Necrodoom
chrisgward Jan 21, 2014
52c3169
Read backup output async
snowleo Jan 25, 2014
915cb51
Trim items.csv based on feedback
necrodoom Jan 8, 2014
c8faf03
Fix cauldron ID
necrodoom Jan 21, 2014
5070f15
Use OSX character split on internal sign interface
khobbits Jan 25, 2014
1c03545
Force Bukkit version to match deps.
khobbits Jan 25, 2014
b9d09dd
Make /speed persist on world change if permissions exist.
khobbits Jan 26, 2014
e7c468b
Attempt to fix client issue with speed reset on world change.
khobbits Jan 26, 2014
466b4ae
Restore Bukkit dependency to parent pom
chrisgward Jan 29, 2014
5b5be16
Allow the use of non-development Bukkit builds at runtime
chrisgward Jan 29, 2014
18b31a7
[FIX] Print a proper error when using tpaccept with no requester
Iaccidentally Feb 1, 2014
161862b
Make sure we leave any vehicles before teleporting.
khobbits Feb 2, 2014
882ebae
[Breaking] Add exception when players have exceeded their account limit.
khobbits Feb 2, 2014
016b397
Restore teleporting to middle of block, when flying and unsafe is ena…
khobbits Feb 2, 2014
6798615
Track UUID for future use.
khobbits Feb 2, 2014
0a6a791
Raise minimum CB version to 2922 or 1.7.2-R0.1
khobbits Feb 2, 2014
c821237
Allow the Essentials module to compile again.
khobbits Feb 2, 2014
6330086
Fixed argument count for meta parsing.
khobbits Feb 2, 2014
f0e4e8c
Add support for vanilla item names from api.
khobbits Feb 2, 2014
20ff619
Readme tweak.
khobbits Feb 4, 2014
518650e
Modifier order consistency
Feb 4, 2014
d99c35c
Add bow as a skeleton keyword
khobbits Feb 6, 2014
a9249de
Reformat pom
khobbits Feb 8, 2014
52c8ebc
Fix duplicates, a few more aliases addition/remove
necrodoom Feb 5, 2014
2affce8
Restore 2 aliases
necrodoom Feb 7, 2014
ce48f2f
[Fix] fireball-fire=true now prevents fire spread from fireballs
coegho Jan 6, 2014
5c74af4
Add /skull command
stuntguy3000 Feb 5, 2014
6174e4a
Code cleanup and remove remote skull edit.
khobbits Feb 8, 2014
5e6ce8a
Reorder ID 376
necrodoom Feb 9, 2014
9bc8f28
Fix ghost items with /recipe
khobbits Feb 9, 2014
fa765d3
Fix world argument to ignore radius, and allow for skipping radius pa…
khobbits Feb 9, 2014
2500c9a
Fix spelling error (atleast) in translation files.
evonuts Feb 11, 2014
970d342
Merge pull request #657 from evonuts/2.x
Iaccidentally Feb 11, 2014
98bee40
Fix Stripping/blocking of urls containing caps.
khobbits Feb 12, 2014
c50f559
Allow sending customtext chapters as a parameter instead of reading c…
khobbits Feb 13, 2014
11b308c
Update repository URLs
chrisgward Feb 15, 2014
6744b65
Use the absolute radius value.
khobbits Feb 16, 2014
a1a190b
Merge branch '2.x' of github.com:essentials/Essentials into 2.x
khobbits Feb 16, 2014
3f2c2aa
Split unsafe enchantments in kits to a new config option
snowleo Feb 18, 2014
53c1c8a
Update Bukkit to 1.7.3-R0.3 - Bukkit: 1903 CB: 3020
khobbits Feb 19, 2014
34599b7
Fix projectiles compiling.
khobbits Feb 19, 2014
e409363
Alternative implementation of unsafe enchant blocking for signs.
khobbits Feb 19, 2014
088c54e
Fix customtext copy
khobbits Feb 19, 2014
2d5c1fd
Fix safety tp check above world height
khobbits Feb 23, 2014
3b35763
Fix warp sign costs.
khobbits Feb 25, 2014
470f4c1
Constant user file casing.
khobbits Feb 27, 2014
b0e1655
Round to gc output to 2 dp.
khobbits Mar 3, 2014
9ec0ca2
User loading cleanup
khobbits Mar 3, 2014
545d706
Fix login death caused by built up fall damage using /fly.
khobbits Mar 3, 2014
859ffea
Remove generated comments
stuntguy3000 Feb 23, 2014
e443776
Finish Sentence
GingerGeek Feb 17, 2014
de485b8
Fixed some grammatic errors, changed some sentences.
SkyBirdSoar Jan 1, 2014
ee98676
Cleaning up readme markdown
Dec 28, 2013
28ec7c2
You can now access the old balance during the UserBalanceUpdateEvent …
Dykam Mar 4, 2014
1be30e4
Only enable teleport protection on plugin/command caused teleport eve…
khobbits Mar 9, 2014
c59a204
Remove op and replace with permission
FearFree Mar 7, 2014
077074c
Add missing language pointers
stuntguy3000 Mar 8, 2014
a7d6e54
Fix messages
necrodoom Mar 9, 2014
b469439
Update translations from Crowdin
khobbits Mar 9, 2014
2ee590d
Add IEssentialsSpawn class for API for Essentials Spawn with two meth…
daboross Oct 24, 2013
8fecd44
Fix some /home errors with invalid data.
khobbits Mar 9, 2014
c6b0dfa
Merge pull request #668 from necrodoom/patch-91
ElgarL Mar 12, 2014
0b5718f
Cleanup warp charging, to properly handle warp sign costs.
khobbits Mar 19, 2014
5724c0c
Future Java versions may not support _ as identifier.
FearFree Mar 20, 2014
3538728
Fix null teleport costs.
khobbits Mar 23, 2014
200dbda
Merge branch '2.x' of github.com:essentials/Essentials into 2.x
khobbits Mar 23, 2014
b673882
Do not allow a block with an Essentials Sign attached to it to be pul…
chrisgward Mar 26, 2014
0b11abf
Revert "Do not allow a block with an Essentials Sign attached to it t…
khobbits Mar 26, 2014
30dae51
Some messages fixes, and information addition.
necrodoom Mar 26, 2014
cfe89dd
Match /clearinventory multiple permission to /msg
necrodoom Mar 26, 2014
4b470b3
Add socialspy wildcard support
necrodoom Mar 26, 2014
ae18047
Helpop should use broadcast method
khobbits Mar 26, 2014
6cfb508
Add local echo to tempban command.
khobbits Mar 26, 2014
44fbd05
Add colors to a few TL keys.
CHCMATT Mar 26, 2014
104caea
Minor phrasing fixes.
evonuts Mar 26, 2014
f272a7e
See if we can better handle book paging to fit more context on a line…
khobbits Mar 29, 2014
0e6a524
Add chat configurables.
khobbits Mar 30, 2014
af3f3fb
Fix fly logic check (creative doesn't mean fly is enabled)
khobbits Mar 31, 2014
fe9fbf5
Correctly handle line overflow in book pager
khobbits Apr 5, 2014
10de6ac
Cleanup
khobbits Apr 6, 2014
737fadc
Update Bukkit 1.7.5-R0.1
khobbits Apr 6, 2014
214d64e
Update config.yml to reflect vanilla fallback no longer works.
khobbits Apr 7, 2014
8d435ec
Update items.csv
clou44 Apr 7, 2014
e007331
Update items.csv
clou44 Apr 7, 2014
36e5804
Converted emulated player class calls to use base class.
khobbits Apr 13, 2014
9e9409d
Essentials UUID conversion.
khobbits Apr 13, 2014
cd38aeb
Remove Ess object from FakeServer.
khobbits Apr 13, 2014
22e1c14
Stop delayed writes from reversing user reset.
khobbits Apr 14, 2014
e8ace54
Make eco npc methods use proper user config creation and resets.
khobbits Apr 14, 2014
3dbf69f
Allow usermap to support legacy users, and restore ability to create …
khobbits Apr 14, 2014
756321d
Add UUID mocking support, and fix tests.
khobbits Apr 14, 2014
65b1821
Update Bukkit to 1.7.8-R0.1
khobbits Apr 14, 2014
87f90e9
Add progress status and /ess uuidconvert command for manual conversion.
khobbits Apr 17, 2014
6098086
Optimize uuidmap writing, and use userConf write buffering.
khobbits Apr 17, 2014
547c6e4
Fix offlineplayers with null names.
khobbits Apr 17, 2014
3c613fd
Force CB 3050+
khobbits Apr 18, 2014
b080187
Add previous account tracking to /seen
khobbits Apr 18, 2014
b6c0871
Format /seen account history list, optimize map loading.
khobbits Apr 18, 2014
b6d6b24
Only write to UUIDMap if the entry doesn't exist.
khobbits Apr 18, 2014
8879577
[Breaking] Fix ECO NPC's. This is a work around of CB's recent chang…
khobbits Apr 19, 2014
d62b401
Skip empty user names on uuid conversion.
khobbits Apr 22, 2014
a1cdfa1
Fix time command exit statuses.
khobbits Apr 24, 2014
b40aa43
Delay uuidconversion for 10s and show warning.
khobbits Apr 26, 2014
0557aa5
Switch AFK check to use UUID.
khobbits Apr 27, 2014
229ff9f
Update UUID mapping, if uuid for a username changes.
khobbits Apr 27, 2014
145d24c
Fix /home for offline players.
khobbits Apr 27, 2014
8bd1a9f
Updating pom for vault
corin12355 Apr 27, 2014
5eb82ad
Run user dispose on another thread.
khobbits Apr 28, 2014
3bf3093
Better handle a write locked usermap.csv
khobbits Apr 29, 2014
e66ad88
Skip npc's when doing cleanup.
khobbits Apr 29, 2014
1bb569f
Fix attempting to spawn invalid items.
khobbits Apr 30, 2014
395655b
Check subgroup permissions with an equal priority so no one subgroup …
ElgarL May 22, 2013
862e71b
add recursive permission adding/removing
necrodoom Jun 14, 2013
67be185
Improve Javadocs, clean ' strip checks, update changelog.
necrodoom Jun 14, 2013
1f9e72c
Tidy imports
ElgarL Jun 14, 2013
ff3ec84
Fix Cyclic mirroring test (silly me)
ElgarL Jul 8, 2013
9d7a204
Change to use LinkedHashSets to preserve ordering. Fixes an issue wit…
ElgarL Jul 22, 2013
427dd71
Allow Exception permission to override negations when in the same group.
ElgarL Jul 22, 2013
3f35a6b
Prevent adding sub groups for ranks the granting player doesn't have …
ElgarL Jul 28, 2013
8f810ad
Cleanup plugin description
necrodoom Dec 8, 2013
92bb4e0
Allow Exceptions in any inherited group to override negation of permi…
ElgarL Mar 27, 2014
f0947e9
Fix manucheckp to understand and report correctly on Exception nodes.
ElgarL Mar 27, 2014
24509d6
Update mangcheckp to understand Exception nodes.
ElgarL Mar 27, 2014
81c6291
Fix a /mangcheckp message
necrodoom Mar 27, 2014
a0e93af
Do not override higher level permissions with negations.
ElgarL Mar 27, 2014
9739784
v2.1: - Update for CraftBukkit 1.7.8-R0.1(3050). - Add UUID support. …
ElgarL Apr 14, 2014
32f4935
Fixup javadocs
ElgarL Apr 14, 2014
aae586f
Fix overloadedWorldHolder so it correctly calls the new WorldHolder c…
ElgarL Apr 14, 2014
211dc22
Set a default mirror map if none is found in the config.
ElgarL Apr 27, 2014
86b5780
Fix clones forgetting sub groups.
ElgarL Apr 28, 2014
0364d4e
Allow disabling userfile cache on uuid convert.
khobbits May 4, 2014
b018769
Prevent players who have never logged in before from taking over exis…
ElgarL May 4, 2014
27e9e3a
Error in logic
ElgarL May 4, 2014
4575fc5
Better handle corrupted chunks.
khobbits May 4, 2014
01d03d5
Update teleport timer to handle UUID rather than player names.
khobbits May 5, 2014
363aee7
Better handle TL failover.
khobbits May 5, 2014
04666b6
Reload locale even if it is set to null.
khobbits May 5, 2014
c12373b
Remove '-' from valid account names again.
khobbits May 5, 2014
f091806
Initialize TL Bundle on plugin start.
khobbits May 6, 2014
b00c317
Only dispose users who are offline at point of disposal.
khobbits May 10, 2014
69f6257
Updated Items.csv: Added nemofish and fishnemo.
clou44 May 6, 2014
6adacbb
Grammatical changes to config.yml
Armadil Apr 1, 2014
7ba097c
Improve messages/formatting
stuntguy3000 Apr 16, 2014
05ef05d
Update translations from crowdin (http://translate2.ess3.net/)
khobbits May 10, 2014
0d6bca2
Update English TL keys.
khobbits May 10, 2014
4ecb6b5
If Bukkit doesn't know who a player is, but we do, substitute the las…
khobbits May 10, 2014
bd866de
First draft of /condense
khobbits May 16, 2014
ed9e4ec
Add user messages.
FarisR99 May 16, 2014
8e7abe3
Prevent reading and writing the usermap at the same time.
khobbits May 17, 2014
cbaf126
Stop using old string player lookup.
khobbits May 17, 2014
1881112
Prevent near empty userdata file creation.
khobbits May 17, 2014
4672e51
Move the teleport timer to an async task.
May 17, 2014
9307e0c
Optimize PlayerLoginEvent
May 17, 2014
3bd0608
Update /condense syntax hint.
khobbits May 17, 2014
429a727
Update worth.yml to be more descriptive.
khobbits Mar 26, 2014
b145ec5
Tweak to player login event.
khobbits May 18, 2014
7e8ba9a
Exempt named mobs by default from /remove
khobbits May 18, 2014
8159530
Fix invalid TL key.
khobbits May 18, 2014
c929ebb
Convert 9 anonymous scheduled tasks to named classes for better logging.
khobbits May 18, 2014
cf29a0b
Rename listening methods to be a little more descriptive of their pur…
khobbits May 24, 2014
ada2fe0
Utilize write transactions for delaylogin task.
khobbits May 25, 2014
889dde7
Abort transaction before updating funds on balance overflow.
khobbits May 25, 2014
57bb1ee
New permission: essentials.silentjoin.vanish
khobbits May 25, 2014
f726035
Don't check silentjoin.vanish if another plugin has hidden the join m…
khobbits May 26, 2014
2ac1ce4
If we are modifying money, force transaction clear, this is important.
khobbits May 27, 2014
4590e7e
Enforce userdata save on player dispose.
khobbits May 27, 2014
00655f7
Revert writecount reset, this could cause odd behavior.
khobbits May 27, 2014
e1d4129
Log takeMoney exception, even if we ignore it.
khobbits May 27, 2014
44509ff
Remove online player lookup in usermap.getUUIDMap(), throw log entry …
khobbits May 27, 2014
80ef955
Improve fakeServer model
khobbits May 27, 2014
b00f458
Emulate player join for mocking.
khobbits May 27, 2014
bffea1d
Extend getUser(Object) to match uuid and offline players.
khobbits May 30, 2014
812de5c
Add API logging to Eco API.
khobbits May 31, 2014
3a50850
Use strings for cachemap key, should prevent accidental key issues.
khobbits Jun 1, 2014
5a2fd19
Fix firework recipe in /recipe
khobbits Jun 4, 2014
9d9af25
Add local echo of mail being sent on /mail send.
khobbits Jun 4, 2014
7e9328b
Try to use consistent UUIDs and not rely on Bukkit lookup while saving.
khobbits Jun 7, 2014
3887fdd
New permission: essentials.itemspawn.meta-vanilla
khobbits Jun 7, 2014
2215b0f
Don't allow old UUID's to accidentally overwrite current UUID for use…
khobbits Jun 7, 2014
95ff197
Show UUID in trackUUID debug message.
khobbits Jun 7, 2014
da6df89
Add optional {2} in 'tempBanned' TL key, for reason.
khobbits Jun 14, 2014
27890e2
Only remove first date match from ban reason.
khobbits Jun 14, 2014
71936cf
Check for arraynull on pex group request.
khobbits Jun 14, 2014
c54e9b5
Add default ban reason for tempban reason.
khobbits Jun 14, 2014
7804516
Add spawn location cache to reduce blocking on player respawn.
khobbits Jun 16, 2014
1690b9d
If "sethome-multiple" config section is invalid, silently fallback to…
khobbits Jun 16, 2014
50a815b
Revert "Add spawn location cache to reduce blocking on player respawn."
khobbits Jun 17, 2014
4854961
Add a lag check for permission system checks.
khobbits Jun 19, 2014
a800359
Force listener cleanup on plugin disable.
khobbits Jun 19, 2014
1f8b600
Reduce a few nickname refresh calls.
khobbits Jun 19, 2014
2c747ec
empty array is not null array
necrodoom Jun 19, 2014
f76a517
New permission: essentials.signs.trade.override.collect
khobbits Jun 21, 2014
6c7ba6a
Allow multiple kits to be spawned per command.
khobbits Jun 22, 2014
dbcecca
Kit cleanup and refactor.
khobbits Jun 25, 2014
0f6625a
Add some debugging to make it easier to diagnose kit errors.
khobbits Jun 25, 2014
6269ce9
Update essentials to support 3rd party vanish toggling.
khobbits Jun 27, 2014
9b69403
Fix NPE with /list in console
khobbits Jun 27, 2014
8e7589e
Slightly reorder teleport messages to be less confusing.
khobbits Jun 28, 2014
549500e
Show warp teleport status to teleport owner.
khobbits Jun 28, 2014
2ba2eba
Update Bukkit
khobbits Jul 6, 2014
02fe581
Allow forcing adult status on randomly generated /spawnmob mobs.
khobbits Jul 6, 2014
7c372cd
Add support for vanilla /tp <x> <y> <z> teleport syntax.
necrodoom Jul 4, 2014
97c8f51
New permission :essentials.tp.position Required to use /tp [player] <…
khobbits Jul 6, 2014
0b925e6
Don't cascade null usernames passed from eco api
khobbits Jul 10, 2014
a131527
Switch sudo to command dispatch, this will allow vanilla commands to …
khobbits Jul 12, 2014
a2c692a
Converge ban message translations, and add reason support to default …
khobbits Jul 12, 2014
4e6c98a
Allow people with god & fly to teleport to unsafe locations even when…
khobbits Jul 12, 2014
b5976a5
Prevent users from setting unsafe homes when teleport safety is disab…
khobbits Jul 12, 2014
8311da2
Allow for changing of username casing without adding 'nickname' prefix.
khobbits Jul 12, 2014
093a1f6
Still give 'nickNoMore' message when removing a nickname.
khobbits Jul 12, 2014
575a814
Add ban reason to /banip
khobbits Jul 12, 2014
51be213
Update to new ban method.
FearFree Jul 12, 2014
0c416c8
Remove ban check from /ess cleanup, no longer required.
khobbits Jul 12, 2014
ae984c2
Update translations from Crowdin (http://translate2.ess3.net)
khobbits Jul 12, 2014
c829a32
Clean up tempban messages to be a little clearer.
khobbits Jul 14, 2014
23f14bc
If a player already exists in the usermap, don't replace it with a ec…
khobbits Jul 19, 2014
ed56afd
Add permission check before resetting speed on login The staff of my …
ALikhachev Jul 13, 2014
465041b
Optimize player / user iteration.
md-5 Jul 12, 2014
d1c014f
Fix sticky piston retract breaking essentials sign
SidShakal Jul 19, 2014
7907565
Formatting fixes.
khobbits Jul 19, 2014
a2c43d8
Add amount required to notEnoughMoney TL key.
FearFree Apr 8, 2014
1d859e4
Add /tempban missing syntax
necrodoom Aug 5, 2014
49d8046
Remove outdated try-catches
necrodoom Aug 5, 2014
d9fbd68
Misc clarification (socialspy and kit delay)
necrodoom Aug 3, 2014
4fd026f
Add mailFormat TL key.
khobbits Aug 11, 2014
53a7cd7
Add paging to mail.
khobbits Aug 11, 2014
3f1c996
Use quicker ban lookup to reduce /seen lag.
khobbits Aug 14, 2014
5125a13
Make sure we close any open inventories of players who leave.
khobbits Aug 14, 2014
037456c
Fix missed cases from previous user iteration optimizations.
md-5 Aug 16, 2014
ffea359
rework /seen to be a little stricter on argument matching.
khobbits Aug 18, 2014
d11a295
Merge branch '2.x' of github.com:essentials/Essentials into 2.x
khobbits Sep 2, 2014
ad13062
Unrequired Dependacy
khobbits Sep 6, 2014
2117a29
Rewrite UUID upgrade code using Mojang API
chrisgward Jan 4, 2015
7e29779
Better handle request rate limit
chrisgward Jan 4, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
53 changes: 53 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
.DS_Store
/BuildAll/nbproject/private/
/EssentialsProtect/nbproject/private/
/EssentialsChat/nbproject/private/
/EssentialsGroupBridge/nbproject/private/
/EssentialsGeoIP/nbproject/private/
/EssentialsSpawn/nbproject/private/
/EssentialsXMPP/nbproject/private/
/EssentialsGroupManager/nbproject/private/
/BuildAll/build/
/EssentialsGroupBridge/dist/
/EssentialsGroupBridge/build/
/EssentialsGeoIP/dist/
/EssentialsGeoIP/build/
/EssentialsGroupManager/build/
/EssentialsGroupManager/dist/
/BuildAll/dist/
/EssentialsChat/build/
/EssentialsChat/dist/
/EssentialsSpawn/build/
/EssentialsSpawn/dist/
/EssentialsXMPP/dist/
/EssentialsXMPP/build/
/EssentialsProtect/dist/
/EssentialsProtect/build/
/EssentialsPermissionsCommands/nbproject/private/
/EssentialsPermissionsCommands/build/
/EssentialsPermissionsCommands/dist/
/Essentials/nbproject/private/
/Essentials/dist/
/Essentials/build/
/YamlAnnotations/
/EssentialsUpdate/nbproject/private/
/EssentialsRelease/
/EssentialsUpdate/dist/
/EssentialsUpdate/build/
/WebPush/apikey.php
/WebPush/nbproject/private
/EssentialsGroupManager/bin
/EssentialsGroupManager/.externalToolBuilders
/EssentialsAntiBuild/nbproject/private/
/EssentialsAntiBuild/dist/
/EssentialsAntiBuild/build/
/jars
/out
.idea/
*.iml
target/
dependency-reduced-pom.xml
/Essentials/config.yml
/Essentials/userdata/testplayer1.yml
/Essentials/usermap.csv
/Essentials/userdata
18 changes: 18 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
language: java
jdk:
- oraclejdk7
- openjdk7
- openjdk6
script: mvn compile test
install: true
notifications:
irc:
channels:
- "irc.esper.net#lain"
on_success: change
on_failure: always
email:
recipients:
- "[email protected]"
on_success: change
on_failure: always
144 changes: 144 additions & 0 deletions Essentials/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>net.ess3</groupId>
<artifactId>EssentialsParent</artifactId>
<version>2.x-SNAPSHOT</version>
</parent>

<artifactId>Essentials</artifactId>

<url>http://ess3.net/</url>

<organization>
<name>Essentials Team</name>
<url>http://ess3.net/</url>
</organization>

<licenses>
<license>
<name>GPLv3</name>
<url>http://www.gnu.org/copyleft/gpl.html</url>
</license>
</licenses>

<scm>
<connection>scm:git:https://github.com/essentials/Essentials.git</connection>
<developerConnection>scm:git:https://github.com/essentials/Essentials.git</developerConnection>
<url>https://github.com/essentials/Essentials</url>
</scm>

<issueManagement>
<system>JIRA</system>
<url>http://essentials3.atlassian.net</url>
</issueManagement>

<ciManagement>
<system>TeamCity</system>
<url>http://ci.ess3.net/</url>
</ciManagement>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<showDeprecation>true</showDeprecation>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId>
<version>1.7.2-R0.3-SNAPSHOT</version>
<scope>system</scope>
<systemPath>${project.basedir}/../lib/bukkit.jar</systemPath>
</dependency>
<dependency>
<groupId>BOSEconomy</groupId>
<artifactId>BOSEconomy</artifactId>
<version>v0.7.8.1</version>
<scope>system</scope>
<systemPath>${project.basedir}/../lib/BOSEconomy.jar</systemPath>
</dependency>
<dependency>
<groupId>de.bananaco</groupId>
<artifactId>bPermissions</artifactId>
<version>v2.12-DEV</version>
</dependency>
<dependency>
<groupId>iConomy</groupId>
<artifactId>iConomy5</artifactId>
<version>5</version>
<scope>system</scope>
<systemPath>${project.basedir}/../lib/iCo5.jar</systemPath>
</dependency>
<dependency>
<groupId>iConomy</groupId>
<artifactId>iConomy6</artifactId>
<version>6</version>
<scope>system</scope>
<systemPath>${project.basedir}/../lib/iCo6.jar</systemPath>
</dependency>
<dependency>
<groupId>net.ess3</groupId>
<artifactId>GroupManager</artifactId>
<version>${project.version}</version>
<scope>system</scope>
<systemPath>${project.basedir}/../EssentialsGroupManager/dist/EssentialsGroupManager.jar</systemPath>
</dependency>
<dependency>
<groupId>MultiCurrency</groupId>
<artifactId>MultiCurrency</artifactId>
<version>2.2</version>
<scope>system</scope>
<systemPath>${project.basedir}/../lib/MultiCurrency.jar</systemPath>
</dependency>
<dependency>
<groupId>com.platymuus</groupId>
<artifactId>bukkit-permissions</artifactId>
<version>2.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/../lib/PermissionsBukkit.jar</systemPath>
</dependency>
<dependency>
<groupId>ru.tehkode</groupId>
<artifactId>PermissionsEx</artifactId>
<version>1.20.4</version>
<scope>system</scope>
<systemPath>${project.basedir}/../lib/PermissionsEx.jar</systemPath>
</dependency>
<dependency>
<groupId>Privileges</groupId>
<artifactId>Privileges</artifactId>
<version>1.8.1</version>
<scope>system</scope>
<systemPath>${project.basedir}/../lib/Privileges.jar</systemPath>
</dependency>
<dependency>
<groupId>SimplyPerms</groupId>
<artifactId>SimplyPerms</artifactId>
<version>1.7.6</version>
<scope>system</scope>
<systemPath>${project.basedir}/../lib/SimplyPerms.jar</systemPath>
</dependency>
<dependency>
<groupId>net.milkbowl.vault</groupId>
<artifactId>Vault</artifactId>
<version>1.2.32</version>
</dependency>
<dependency>
<groupId>zPermissions</groupId>
<artifactId>zPermissions</artifactId>
<version>1.1</version>
<scope>system</scope>
<systemPath>${project.basedir}/../lib/zPermissions.jar</systemPath>
</dependency>
</dependencies>
</project>
18 changes: 18 additions & 0 deletions Essentials/src/book.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
This is the book file.

This file format works similar to the info.txt, motd.txt and rules.txt

Place content in here that you would like to be used by books ingame.

You can use this content by using the book:<section> meta option in kits or item spawning.

#Colors
Minecraft colors:
&0 &&0 &1 &&1 &2 &&2 &3 &&3
&4 &&4 &5 &&5 &6 &&6 &7 &&7
&8 &&8 &9 &&9 &a &&a &b &&b
&c &&c &d &&d &e &&e &f &&f
&0
&&k &kMagic&r &&l &lBold
&&m &mStrike&r &&n &nUline
&&o &oItalic&r &&r &rReset
139 changes: 139 additions & 0 deletions Essentials/src/com/earth2me/essentials/AlternativeCommandsHandler.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
package com.earth2me.essentials;

import java.util.*;
import java.util.logging.Level;
import java.util.logging.Logger;
import net.ess3.api.IEssentials;
import org.bukkit.command.Command;
import org.bukkit.command.PluginCommand;
import org.bukkit.command.PluginCommandYamlParser;
import org.bukkit.plugin.Plugin;


public class AlternativeCommandsHandler
{
private static final Logger LOGGER = Logger.getLogger("Essentials");
private final transient Map<String, List<PluginCommand>> altcommands = new HashMap<String, List<PluginCommand>>();
private final transient Map<String, String> disabledList = new HashMap<String, String>();
private final transient IEssentials ess;

public AlternativeCommandsHandler(final IEssentials ess)
{
this.ess = ess;
for (Plugin plugin : ess.getServer().getPluginManager().getPlugins())
{
if (plugin.isEnabled())
{
addPlugin(plugin);
}
}
}

public final void addPlugin(final Plugin plugin)
{
if (plugin.getDescription().getMain().contains("com.earth2me.essentials"))
{
return;
}
final List<Command> commands = PluginCommandYamlParser.parse(plugin);
final String pluginName = plugin.getDescription().getName().toLowerCase(Locale.ENGLISH);

for (Command command : commands)
{
final PluginCommand pc = (PluginCommand)command;
final List<String> labels = new ArrayList<String>(pc.getAliases());
labels.add(pc.getName());

PluginCommand reg = ess.getServer().getPluginCommand(pluginName + ":" + pc.getName().toLowerCase(Locale.ENGLISH));
if (reg == null)
{
reg = ess.getServer().getPluginCommand(pc.getName().toLowerCase(Locale.ENGLISH));
}
if (reg == null || !reg.getPlugin().equals(plugin))
{
continue;
}
for (String label : labels)
{
List<PluginCommand> plugincommands = altcommands.get(label.toLowerCase(Locale.ENGLISH));
if (plugincommands == null)
{
plugincommands = new ArrayList<PluginCommand>();
altcommands.put(label.toLowerCase(Locale.ENGLISH), plugincommands);
}
boolean found = false;
for (PluginCommand pc2 : plugincommands)
{
if (pc2.getPlugin().equals(plugin))
{
found = true;
}
}
if (!found)
{
plugincommands.add(reg);
}
}
}
}

public void removePlugin(final Plugin plugin)
{
final Iterator<Map.Entry<String, List<PluginCommand>>> iterator = altcommands.entrySet().iterator();
while (iterator.hasNext())
{
final Map.Entry<String, List<PluginCommand>> entry = iterator.next();
final Iterator<PluginCommand> pcIterator = entry.getValue().iterator();
while (pcIterator.hasNext())
{
final PluginCommand pc = pcIterator.next();
if (pc.getPlugin() == null || pc.getPlugin().equals(plugin))
{
pcIterator.remove();
}
}
if (entry.getValue().isEmpty())
{
iterator.remove();
}
}
}

public PluginCommand getAlternative(final String label)
{
final List<PluginCommand> commands = altcommands.get(label);
if (commands == null || commands.isEmpty())
{
return null;
}
if (commands.size() == 1)
{
return commands.get(0);
}
// return the first command that is not an alias
for (PluginCommand command : commands)
{
if (command.getName().equalsIgnoreCase(label))
{
return command;
}
}
// return the first alias
return commands.get(0);
}

public void executed(final String label, final PluginCommand pc)
{
final String altString = pc.getPlugin().getName() + ":" + pc.getLabel();
if (ess.getSettings().isDebug())
{
LOGGER.log(Level.INFO, "Essentials: Alternative command " + label + " found, using " + altString);
}
disabledList.put(label, altString);
}

public Map<String, String> disabledCommands()
{
return disabledList;
}
}
Loading