Commit Graph

699 Commits

Author SHA1 Message Date
Magnus Ulf
6176369f35 Made better cmd error msgs.
ArAbstractSelect will euggest a matching option if,
an invalid arg was passed & a matching one exists at.
If an invalid subcommand aliases were passed,
a matching subcommand will be suggested.
After feedback from MonMarty a few misc messages was changed.
2015-03-06 09:33:57 +01:00
Magnus Ulf
f3ad2a40ba Update ParticleEffect library
Thanks to @DarkBlade12 for providing this awesome library.
2015-03-05 22:23:50 +01:00
Olof Larsson
c83a8b8b11 Bad Cayor :P 2015-03-05 18:37:29 +01:00
Olof Larsson
e16333b822 MassiveStore improvements 2015-03-05 16:17:15 +01:00
Olof Larsson
525d904f8f Not going to be lazy 2015-03-05 00:14:09 +01:00
Olof Larsson
5eaaeec680 Minor IntervalUtil tweaks. 2015-03-03 23:03:58 +01:00
Olof Larsson
e4b20c812b Add EventMassiveCoreWorldSetTime 2015-03-03 16:25:38 +01:00
Olof Larsson
6b09cb600d Fetch the Economy every time. New services may always be registered. 2015-02-23 22:24:43 +01:00
Olof Larsson
ee1f4cf9c9 Add MUtil.round() 2015-02-23 15:32:39 +01:00
Olof Larsson
5430af6567 Minor constant tweak. 2015-02-21 08:18:15 +01:00
Madus
d6bcb13e9c Only send massages if any exist
Prior to this an empty message would be sent if no i messages present. Now we dont send anything if no messages is present.
2015-02-19 15:25:47 +01:00
Olof Larsson
3e4f280b42 Add Pager Item Index 2015-02-17 10:40:30 +01:00
Olof Larsson
08937899a8 Add MassiveException.hasMessages. 2015-02-15 08:31:08 +01:00
Olof Larsson
536b716d0e Better parameter names for TitleMixin 2015-02-13 09:50:48 +01:00
Olof Larsson
06ad16e624 Make ARAbstractSelect#select throw MassiveException 2015-02-12 17:03:34 +01:00
Olof Larsson
bea7ccae46 MassiveCommandException --> Exception 2015-02-12 11:59:36 +01:00
Madus
c1ead17379 Add grey colour alias 2015-02-12 07:15:43 +01:00
Olof Larsson
0355ec6ef4 Add orange color alias. 2015-02-11 16:25:54 +01:00
Olof Larsson
8b12cadf0a Decouple logic for list permission check and avoiding spam. 2015-02-04 14:04:41 +01:00
Olof Larsson
49444c6fbf ArgReaders use exceptions - Part 2 2015-02-04 01:27:33 +01:00
Magnus Ulf
47b2eeccb4 ArgReaders use exceptions
Now null checks for arguments is no longer required.
A few arg readers was also improved slightly.
2015-02-03 21:50:49 +01:00
Magnus Ulf
59edd6917f TitleUtil without NMS
And a TitleMixin
2015-02-02 21:43:41 +01:00
Olof Larsson
e93f7c12d8 Collection Tick Stack Traceability 2015-02-02 00:25:59 +01:00
Olof Larsson
ad529d7542 Implement remove in BackstringIterator. Fixes #201. 2015-01-25 23:44:00 +01:00
ulumulu1510
910995d9b5 Create ARSet 2015-01-22 09:23:54 +01:00
Olof Larsson
76a98248a3 Remove Maven 2015-01-19 09:58:05 +01:00
Olof Larsson
1c42916d5b Dodge NPE in ItemStackAdapter 2015-01-14 23:26:32 +01:00
Olof Larsson
b2bdd68069 Make ModuloRepeatTask extend EngineAbstract. Add ARList. 2015-01-13 09:52:18 +01:00
Olof Larsson
7d0eba1665 Make IdData more immutable. 2015-01-10 13:03:00 +01:00
Olof Larsson
d65323efb1 More utilities and alterations to the progress bar system. 2015-01-09 15:46:23 +01:00
Olof Larsson
b857df8763 Another minor performance improvement. 2015-01-08 10:00:13 +01:00
Olof Larsson
8dac1eeece Minor performance improvement in MassiveCoreEngineCommandRegistration 2015-01-08 09:22:40 +01:00
Benjamin
16c3a15cdc Corrected minor Grammatical mistake
found by Flashera while debugging Derius
2015-01-07 20:15:40 +01:00
Olof Larsson
f53c353981 Better StackTrace formatting and reflection get accessible. 2015-01-07 15:54:48 +01:00
Olof Larsson
47086252b0 Some more reflection util content. 2015-01-05 13:29:22 +01:00
Olof Larsson
160d908a5b Add basic ReflectionUtil 2015-01-05 12:29:21 +01:00
Olof Larsson
ed58b3185a Break out some sub routines within the command system. 2015-01-05 11:39:12 +01:00
Magnus Ulf
22cef1d9da Tab list with subcommands
Now when using tab it should suggest subcommands (if any available) instead of players/senders.

Conflicts:
	src/main/java/com/massivecraft/massivecore/cmd/MassiveCoreBukkitCommand.java
2015-01-04 15:26:34 +01:00
Olof Larsson
014815d227 Merge pull request #190 from magnusulf/patch-1
Fixed ambigious method
2015-01-04 12:11:25 +01:00
Olof Larsson
48291b7c4d Rework the MUtil.getOnlinePlayers slightly again. 2014-12-31 11:18:55 +01:00
Magnus Ulf
da3549da0e Hacky command support
Some plugins (PerWorldPlugins) use a hacky command structure like MassiveCore does.
Their command strcuture aims to limit commands per world.
This will make it a tiny bit easier, so they don't need,
special support system for MassiveCore, and don't have to update it.
Other plugins might also use this, but atleast it doesn't hurt us.
2014-12-31 10:32:58 +01:00
Olof Larsson
559d907118 Move WorldExceptionSet from Faction to MassiveCore. Closes MassiveCraft/MassiveCore#197. 2014-12-19 11:54:20 +01:00
Olof Larsson
61df6a2242 Use implicit string based lazily evaluating sets instead of explicit enum sets. Fixes MassiveCraft/Factions#730. Fixes MassiveCraft/Factions#733. 2014-12-16 02:06:54 +01:00
Olof Larsson
e834964baa Updated ParticleLib. Fixes MassiveCraft/Factions#723. 2014-12-12 10:28:18 +01:00
Olof Larsson
42914f48a0 The methods only make sense for players. Modify them to be for players only. 2014-12-11 10:44:11 +01:00
Olof Larsson
c1db14eebe Various sender reference improvements. Fixes MassiveCraft/Factions#726. 2014-12-10 10:28:10 +01:00
Olof Larsson
1eaf1cbfe5 Merge pull request #195 from magnusulf/master
Extended material facts
2014-12-07 23:08:11 +01:00
Benjamin
a7703e83f4 Whitespace fix 2014-12-07 12:37:08 +01:00
magnusulf
e1c3dfad49 Extended material facts 2014-12-07 12:20:25 +01:00
Olof Larsson
5f63d829e4 Avoid NPE on trying to delete non existant entity. Fixes MassiveCraft/Factions#722. 2014-12-05 00:37:53 +01:00
Olof Larsson
8ec05472fd Catch both Exceptions and Throwables. 2014-12-04 19:10:36 +01:00
Olof Larsson
05bd60df90 Swap if statements into more probably order and remove syso debug. 2014-12-03 02:23:51 +01:00
Olof Larsson
84aa54218e Compile against Spigot 1.8 API. Provide inhouse getOnlinePlayers method using reflection as a fallback. Fixes #192. 2014-12-03 02:10:05 +01:00
Olof Larsson
495e839351 Color Int Code 2014-12-02 23:52:46 +01:00
Harry
09c263d4b1 Link pom.xml version to plugin.yml version 2014-12-02 15:59:18 +00:00
Madus
b34943197a Update Txt.java 2014-11-29 22:00:31 +01:00
Madus
cc672d1ea6 Support for norwegian & danish vowels
The norwegian & dansih alphabet contains "æ" & "ø" which was not a part of the vowels set.
TBH I have no clue if this makes any difference.
2014-11-29 21:58:43 +01:00
Madus
1636f83b84 Fixed ambigious method
This method showed up as ambigious in Eclipse. This should be a fix
2014-11-29 17:57:48 +01:00
Olof Larsson
f82a80a12b Fixes MassiveCraft/MassiveBooks#3 2014-11-25 19:33:27 +01:00
magnusulf
438f251b00 Support for gamemode numbers
Adding the gamemodes numbers as a way to gather the gamemode.
2014-11-25 16:31:59 +01:00
magnusulf
61a29a96a5 Minor Change
Turning a method returning boolean if(something) into a single line.
2014-11-21 23:28:11 +01:00
Olof Larsson
6aa2bd5ee4 This is 2.7.1 2014-11-21 11:24:23 +01:00
Olof Larsson
4b570f5de9 Supply the Plugin upon registration of a MassiveCommand. 2014-11-21 10:48:05 +01:00
Olof Larsson
36303b66bb Remove unnecessary base command aliases. Especially "mc" too often collided with other plugins. Fixes #185. 2014-11-21 09:31:04 +01:00
Olof Larsson
ccd470dc6e Ignore the idnamecache.json if empty. Fixes #139. Fixes #130. 2014-11-21 09:23:41 +01:00
Olof Larsson
284debd11c This is 2.7.0. Sync with Factions versions. 2014-11-19 13:42:30 +01:00
Olof Larsson
4f7ebd9a7c This is 8.0.0 2014-11-19 11:41:24 +01:00
Olof Larsson
8e697bb286 Cleaning up the main MassiveCore file a little bit. 2014-11-18 09:48:32 +01:00
Olof Larsson
50ccfc73fa Maintain detailed types of superclass actual type arguments. 2014-11-13 11:40:20 +01:00
Olof Larsson
81e4aae209 Underp the Accessor reflection framework. 2014-11-13 09:08:51 +01:00
Olof Larsson
d986f2ba31 Remove and replace subcommands. 2014-11-12 11:36:04 +01:00
Olof Larsson
6e096e1a92 Java 1.6 compliance. 2014-11-07 08:40:44 +01:00
Olof Larsson
8fc5707061 Clean up player references even on exception. 2014-10-22 07:53:56 +02:00
Olof Larsson
b083182291 Fractional Digits Preparation Support 2014-10-22 07:49:51 +02:00
Olof Larsson
7f48580e51 Custom collections with special GSON behavior, and other stuffs... 2014-10-18 18:31:07 +02:00
Olof Larsson
c4a7a4988c Add PriorityLines 2014-10-15 14:36:17 +02:00
Olof Larsson
1332ef414e Shallow copy the help command chain to not permanently disturb it with modification. 2014-10-14 09:24:41 +02:00
Olof Larsson
d375ccccb6 Small extra stuffs. PS.getDistinctChunks and reverseIndex of map. 2014-10-13 11:42:25 +02:00
Olof Larsson
938efaeed4 Add a case insensitive treeset builder and commonly used sets of strings meaning nothing and remove. 2014-10-13 08:10:18 +02:00
Olof Larsson
af67dfbf0f Updated Particle Effect system. 2014-10-08 09:52:20 +02:00
Olof Larsson
bfd4b5c7b8 MStore fixes and don't confuse same priority with equality. 2014-10-07 12:29:50 +02:00
Olof Larsson
43ec0d3eb1 Loading speed improvement. 2014-10-06 14:46:12 +02:00
Olof Larsson
c11e2ba234 Add url based macro utility command. Also tweak TimeUnit a bit. 2014-10-06 13:06:01 +02:00
Olof Larsson
04f03eb14a The SenderEntity fixId does not have do be recursive. 2014-10-03 11:23:25 +02:00
Olof Larsson
8b45d2b71e Added Registerable interface. 2014-10-02 11:45:27 +02:00
Olof Larsson
45009a7f59 throw null pointer exceptions and silently accept detatching something detached. 2014-09-18 14:28:37 +02:00
Olof Larsson
6e669d376f Even more broken database suggestions. Fixes Factions#685. 2014-09-18 13:59:36 +02:00
Olof Larsson
8fda66ff8c Standardize method names 2014-09-18 13:41:02 +02:00
Olof Larsson
7065d5c824 Expand driver functionality 2014-09-18 00:17:42 +02:00
Olof Larsson
b732a26a9e Sorry could not shade. m2eclipse does not handle it well enough. 2014-09-13 10:24:26 +02:00
Olof Larsson
2873642d68 Standard directory structure. 2014-09-12 23:52:19 +02:00
Olof Larsson
e0656ab9ea Shade in GSON, BSON and MongoDB. 2014-09-12 23:36:17 +02:00
Olof Larsson
2e589a195e GSON shade attempt fail 2014-09-12 23:11:19 +02:00
Olof Larsson
50af17ee91 Look ma\! No NMS\! 2014-09-12 22:01:52 +02:00
Olof Larsson
5908636ef2 Add an InventoryMixin to prepare nms removal 2014-09-12 21:37:27 +02:00
Olof Larsson
8b175ba9a6 This NMS is luxyry not really required. It also takes a lot of startup time. Feel sniped. :D 2014-09-12 21:04:31 +02:00
Olof Larsson
a7465021df Remove the nms LightUtil. Only used by one plugin. 2014-09-12 20:59:42 +02:00
Olof Larsson
eb24a9d574 Remove ProtocolLib integration. Was only used by the Vampire plugin for which I will use ambient potion effects. 2014-09-12 20:55:20 +02:00
Olof Larsson
a071fd5058 Remove sender references when they no longer are needed. 2014-09-12 10:19:28 +02:00
Olof Larsson
df2cc9d75c Dat line removal 2014-09-10 11:21:01 +02:00
Olof Larsson
6e9c6525f7 Fix up the give take inv detectors. 2014-08-29 01:00:39 +02:00
Olof Larsson
6086d3f36f Add Metrics to all MassiveCore based plugins. 2014-08-27 15:22:12 +02:00
Olof Larsson
81f5a623cb getAllButMillisSecondsAndMinutes 2014-08-21 00:37:30 +02:00
Olof Larsson
d1b6388c33 Cancel teleport on damage and death. 2014-08-16 10:18:27 +02:00
Olof Larsson
7fc9b09279 Probably fix a memory leak that happened in tandem with the Spigot timing system. 2014-08-15 12:09:41 +02:00
Olof Larsson
8a7f4d1718 MassiveCore - Performance improvement for command argument readers. 2014-07-31 16:43:17 +02:00
Olof Larsson
b223a74194 Update for 1.7.10 2014-07-13 15:09:58 +02:00
Olof Larsson
ae562b10a9 Get ip 2014-07-07 09:13:20 +02:00
Olof Larsson
8857e62ad8 FIX NPC in AREnum 2014-06-26 15:53:25 +02:00
Olof Larsson
1fb0fd9abe DisplayName per beholder 2014-06-21 19:05:20 +02:00
Olof Larsson
944aaf6853 DisplayName should not be set. Only gotten. Possibly from a watcher perspective. 2014-06-18 23:36:58 +02:00
Olof Larsson
951367c586 Remove List Name Mixin. Not used. 2014-06-18 23:28:12 +02:00
Olof Larsson
19d5682741 Return lists in Coll 2014-06-11 22:06:52 +02:00
Olof Larsson
37ee04936f Rename 2014-06-04 13:58:40 +02:00
Olof Larsson
47ebbce40e Renamed some class files so they match with others. 2014-06-04 08:08:04 +02:00
Olof Larsson
c9983e8032 Added a buffer variable system. 2014-06-04 08:06:41 +02:00
Olof Larsson
33efff8915 Some material and sign utilities. 2014-06-03 10:49:12 +02:00
Olof Larsson
70c07bc510 Last Damage Millis and No Damage Millis 2014-05-27 22:13:47 +02:00
Olof Larsson
6a1a57ccdc Duplicate this and duplicate that. 2014-05-27 13:16:51 +02:00
Olof Larsson
0a281196e6 PlayerUtil experiments and probably fixing the Vault integration failure. 2014-05-26 09:30:48 +02:00
Olof Larsson
25cb50924c Mention what nbt file is broken. Fixes #124. 2014-05-23 09:17:32 +02:00
Olof Larsson
ed980f2dbe Particle effects, standstill millis counter and AREnum. 2014-05-19 10:18:21 +02:00
Olof Larsson
6b2332c162 Minecraft 1.7.9 support and UUID oriented. 2014-05-14 15:13:38 +02:00
Olof Larsson
9fdf1b1235 Untested 1.7.8 support with minor preparations towards id changes. 2014-04-17 14:36:50 +02:00
Olof Larsson
b5a98f82c9 Update index on setting name after attach as well. 2014-04-16 15:21:38 +02:00
Olof Larsson
b41da972f8 Index the player name for fast name --> id lookup. 2014-04-16 15:18:00 +02:00
Olof Larsson
c6fa21c247 Make use of MCoreEvent. Make some fields private instead of protected. 2014-04-15 22:08:16 +02:00
Olof Larsson
2b6cce2607 Add paralellism to the Fetcher framework. Seems to reduce time spent from O(N) to O(1). 2014-04-10 17:07:45 +02:00
Olof Larsson
666e4d0dff Update the cache on login. 2014-04-10 13:01:56 +02:00
Olof Larsson
d73d453994 Starting development on a Player name and id framework with bult in caching. Still missing index for reverse lookup speed improvement. Still missing information updates on player join. 2014-04-09 14:11:22 +02:00
Olof Larsson
ebb5cbe74a Add a MojangApiUtil based on the work of @evilmidget38. Thanks man. 2014-04-09 01:58:44 +02:00
Olof Larsson
33d1de2e13 OOps. Fixed invalid regex. 2014-04-07 02:09:27 +02:00
Olof Larsson
cfaaa9f421 Improved AREntityType 2014-04-07 02:04:41 +02:00
Olof Larsson
1de1a7184a ARStringAdv is no longer required. 2014-04-07 01:54:54 +02:00
Olof Larsson
a7d3e96ab8 Simplified the MCoreConf and added a variablebook feature. 2014-04-07 01:50:57 +02:00
Olof Larsson
a9c3f7448a That did not work. How about this? 2014-04-05 11:36:51 +02:00
Olof Larsson
d6ef55d465 Configurable write concernt for mstore mongodb driver. 2014-04-05 11:06:45 +02:00
Olof Larsson
3f3016c27e Top level commands are case insensitive. Thus sub commands should be as well. 2014-04-04 13:08:51 +02:00
Olof Larsson
722ce6b2a7 Permission node simplification. 2014-04-03 17:21:07 +02:00
Olof Larsson
1bb7d0a1d5 A system to allow automatic removal of clutter files you dislike. 2014-04-01 12:45:29 +02:00
Olof Larsson
1ced407e20 Ooops. Managed to remove the id deletion. 2014-03-28 16:03:31 +01:00
Olof Larsson
fa69405239 Copydb command access check, remote mtime defaults to 0, mote mtime field to the top. 2014-03-28 15:13:23 +01:00
Olof Larsson
16fc6b94e5 1.7.5 compat 2014-03-26 23:36:36 +01:00
Olof Larsson
9ea73846e4 Support async engine tasks and optimize MUtil.random a bit 2014-02-20 12:05:25 +01:00
Olof Larsson
ddcca231a6 Be less hacky. Dynamic aliases in a new and less intrusive way. 2014-02-14 03:08:56 +01:00
Olof Larsson
4384c5f396 Some metadata tools and a random tool. 2014-02-14 01:47:47 +01:00
Olof Larsson
ef7a4ef69c Might be fun to clone GSON elements some time. 2014-01-31 18:13:58 +01:00
Olof Larsson
8ca4c999d9 Added MetadataSimple for simple metadata cenarios 2014-01-31 18:01:34 +01:00
Olof Larsson
00efb36bcc Stop listing in AbstractSelect in case there are too many optoin. 2014-01-30 21:47:43 +01:00
Olof Larsson
e714c44ead Remove using iterator to avoid cme 2014-01-30 03:41:48 +01:00
Olof Larsson
058cc49720 Work on supporting raw JsonObjects 2014-01-30 03:35:55 +01:00
Olof Larsson
66de46f0c9 Break out the isFloating logic in the GsonEqualsChecker 2014-01-30 02:43:33 +01:00
Olof Larsson
010d91a75d Create a default MPlugin onEnable override 2014-01-05 10:57:26 +01:00
Olof Larsson
59ad607b14 Remove "Smart" Quotes per default 2013-12-17 12:53:30 +01:00
Olof Larsson
8d1ec9f51d Some useful predictates 2013-12-17 02:59:57 +01:00
Olof Larsson
e54b708936 Pager fixes and removed library download utilities. No need for them anymore. 2013-12-11 17:16:06 +01:00
Olof Larsson
579919f75f A Pager System 2013-12-07 13:44:47 +01:00
Olof Larsson
edea6807c6 Handle null cases in the MoneyMixinAbstract 2013-12-06 15:34:10 +01:00
Olof Larsson
8465250061 Decided I dislike var-args and money transactions should have an optional freetext message. 2013-12-06 15:03:58 +01:00
Olof Larsson
813661877d An attempt to use the latest version protocol lib. Warning it seems protocol lib for 1.7.2 still has bugs. 2013-12-05 13:27:55 +01:00
Olof Larsson
e6d98e4e15 Untested version for 1.7.2 2013-12-04 12:16:12 +01:00
Olof Larsson
8e0362172d Money param reorder 2013-12-03 20:20:14 +01:00
Olof Larsson
3749074463 Removing universe support in the Money mixin. The feature is to advanced and was never fully supported through Vault anyways. 2013-12-03 12:59:18 +01:00
Olof Larsson
bb259374e4 Added comments and fixed indentation for ModdedEnumTypeAdapter. 2013-11-13 10:48:07 +01:00
OniBait
ee2c51f60a Add gson type factory adapter to handled modded enums 2013-11-13 01:40:01 -06:00
Olof Larsson
5545965cdf Space pls 2013-11-12 22:09:34 +01:00
Olof Larsson
0cca530a60 PS will complain on weird values. Reason being GSON cant serialize weird stuff. 2013-11-12 22:02:53 +01:00
Olof Larsson
86db5a6bdd This is 6.9.0, now with fully dynamic command registration. 2013-11-11 09:21:16 +01:00
Olof Larsson
4b03dd4e2b First minor attempts at lazy. 2013-10-18 15:40:25 +02:00
Olof Larsson
e630d509ed Add in lazy option without implementing it. 2013-10-18 14:50:12 +02:00
Olof Larsson
03c2d8b6a1 MStore ID strategy does not exist anymore. Delete this remnant. 2013-10-18 14:09:03 +02:00
Olof Larsson
5f692d215a Handle zero time diff better 2013-10-10 14:29:20 +02:00
Olof Larsson
480fcdc8b9 Add a permission arg reader and the option to turn of the cmd arg tokenizer. 2013-10-06 14:28:29 +02:00
Olof Larsson
31f3964cb9 Triple 2013-10-03 16:06:43 +02:00
Olof Larsson
17c21a0918 Trim content for possible evasion of hidden invalid chars. 2013-10-03 00:37:07 +02:00
Olof Larsson
23ddea0772 Add a removeByIndex utility method and a new arg reader. 2013-10-01 11:34:45 +02:00
Olof Larsson
af539e1a51 Small changes to the Couple 2013-09-30 20:09:33 +02:00
Olof Larsson
6de0729328 Immutable Couple Class pls 2013-09-30 17:29:18 +02:00
Olof Larsson
a663566a89 Advanced String arg reader pls 2013-09-30 16:36:07 +02:00
Olof Larsson
824e1640c5 Increase the online state lookup speed. Improves MassiveCraft/Factions#423 2013-09-22 11:32:51 +02:00
Olof Larsson
9a7e87ec2b Update for Minecraft 1.6.4 2013-09-20 13:12:24 +02:00
Olof Larsson
cf5751333e Allow ArgReader to handle case where arg is null. 2013-09-19 16:20:17 +02:00
Olof Larsson
91f9ec7c0c JSON errors are sometimes IllegalStateExceptions. Fixes #43 2013-09-15 10:06:14 +02:00
Olof Larsson
b9dd57b7e3 Add custom data to all Entities instead of Factions only. 2013-09-10 03:34:06 +02:00
Olof Larsson
f4b3924dc3 We wanna serialize JsonElements as JsonElements, duh 2013-09-10 02:40:57 +02:00
Olof Larsson
5782eb9193 For those that felt like clearing their config file. 2013-09-09 19:57:04 +02:00
Olof Larsson
0c8f1c9cf1 Check if AsyncPlayerChatEvent is async or not. Fixes #35. 2013-09-08 22:59:40 +02:00
Olof Larsson
ae575ac674 Merge branch 'master' of github.com:MassiveCraft/mcore 2013-09-06 11:35:28 +02:00
Olof Larsson
ac3ff4590e Make recipient event work for console. Add in some more debug in mstore. 2013-09-06 11:35:07 +02:00
riking
fe6ce01037 Define hashCode() for TimeUnit as it is being used in a HashMap
TimeUnit is being used as the key to a map in TimeDiffUtil, so we must define a hashCode() consistent with its equals() method.

The implementation is the same as java.lang.Long.hashCode().
2013-08-30 18:45:57 -07:00
riking
5c6cd57a4d Use a MutableBoolean to synchronize on instead of a Boolean
The code synchronizes on a boxed primitive constant, such as an Boolean.

Since there normally exist only two Boolean objects, this code could be synchronizing on the same object as other, unrelated code, leading to unresponsiveness and possible deadlock.

This commit uses the MutableBoolean class from commons-lang, which is included in bukkit.jar.
2013-08-30 18:40:48 -07:00
Olof Larsson
f78872c157 Oh yeah. I should not use ServerConf since this could be MConf. 2013-08-29 10:55:35 +02:00
Olof Larsson
6810d92b68 Say what entity load failed and why in a nicer manner. 2013-08-29 08:37:31 +02:00
Olof Larsson
5a2ef78d58 Forgot to clear at setup. 2013-08-27 10:58:18 +02:00
Olof Larsson
296d0cbdb2 Add in a system to detect if a PlayerDeathEvent is an invalid duplicate event. 2013-08-27 10:56:11 +02:00
Olof Larsson
d21858d5c7 Actually that PlayerConnection wrap was to dangerous. Let's do it simpler and slightly uglier. 2013-08-26 10:29:58 +02:00
Olof Larsson
1b8ae6cf5f Make the forceOnePlayerNameCase much quicker and isolate it in an Engine class. 2013-08-25 12:28:20 +02:00
Olof Larsson
7f7f5db99d Remove old stuff in player util that nowadays we use Mixin for. 2013-08-25 11:41:49 +02:00
Olof Larsson
d9d9b926c1 Force one player name case. Prevents bugs with offline mode servers and case sensitive file systems. 2013-08-23 10:05:41 +02:00
Olof Larsson
443c800a90 Fix indent 2013-08-22 13:53:19 +02:00
Olof Larsson
8b7b19fada Adding in our own per recipent chat event through PlayerConnection wrapping. 2013-08-22 13:36:37 +02:00
Olof Larsson
0fd2fc5bf5 More sound stuff and a hearsound command available to everyone. 2013-08-18 13:13:00 +02:00
Olof Larsson
b679c94892 An ArgReader for Bukkit Sound. 2013-08-18 12:41:21 +02:00
Olof Larsson
0dbe943cfe Make this possible NPE more clear. 2013-08-09 08:35:28 +02:00
Olof Larsson
d4317583b6 Avoid Bukkit error with water potions. 2013-08-07 08:03:08 +02:00
Olof Larsson
0d5fb204a6 Add ability to require a presence in the mixin for commands. 2013-08-06 15:11:20 +02:00
Olof Larsson
ae2c1285d6 Static plz 2013-08-05 13:33:09 +02:00
Olof Larsson
f0dfc539ba CommandMixin plz 2013-08-05 13:30:32 +02:00
Olof Larsson
62b0e8f8b3 Improve upon the teleport mixin again. Lazy destination plz :) 2013-08-05 09:02:42 +02:00
Olof Larsson
e2e8a80de4 Add another constructor variant to VersionCommand. 2013-08-03 12:51:48 +02:00
Olof Larsson
f92f48cbd0 Workaround BUKKIT-4612 2013-07-27 10:07:56 +02:00
Olof Larsson
fa59f9f6cd Check the file ending. Fixes #11. 2013-07-27 09:44:08 +02:00
Olof Larsson
2f75fbdb1d Load permissionToTpdelay. Fixes #22. 2013-07-27 09:36:13 +02:00
Olof Larsson
db74b467b5 Made the permissionDeniedFormats lookups recursive. 2013-07-23 17:42:27 +02:00
Olof Larsson
fb03dae04c This is 6.4.4_dev for 1.6.2 2013-07-11 20:59:26 +02:00
Olof Larsson
a8bb0ed439 Rename back 2013-07-03 09:22:02 +02:00
Olof Larsson
0d38264cb0 Rename to temp, windows is wierd 2013-07-03 09:21:36 +02:00
Olof Larsson
504b479d31 Fix the protocol lib integration. Thanks @aadnk 2013-07-02 21:37:13 +02:00
Olof Larsson
c7d42419e0 This is 6.5.0_dev 2013-07-02 10:28:00 +02:00
Olof Larsson
94d2c1d46d Some users want to set the delay to 0? 2013-06-29 20:07:31 +02:00
Olof Larsson
b0f9eee41d Improve upperCaseFirst stability. 2013-06-28 07:31:15 +02:00
Olof Larsson
7ec866f458 This is 6.4.1_dev, Fix Vault NPE. 2013-06-23 09:27:36 +02:00
Olof Larsson
dc3cb5e1d1 Add destination desc to the event and rename parameters for PS teleport mixin. 2013-06-12 08:44:41 +02:00
Olof Larsson
b4095ed4ab Add a couple of Reqs I found useful. 2013-06-11 17:15:14 +02:00
Olof Larsson
7de7d30e28 Avoid method name clash 2013-06-11 09:13:30 +02:00
Olof Larsson
226fcfe32f Simplified the visibility mixin for now. 2013-06-11 07:21:11 +02:00
Olof Larsson
746ce7fb55 Add in a small async web util. 2013-06-07 09:31:14 +02:00
Olof Larsson
28f96fcab0 Add in pre/post detach/attach hooks and ensure entity contains all data before attachin on first load from remote. 2013-05-31 11:34:23 +02:00
Olof Larsson
cc75cb8e15 Eject passengers and unmount before teleporting. Wont work otherwise. 2013-05-29 14:44:12 +02:00
Olof Larsson
6d57d6f51c Implemented a recursive equality checker for JsonElement. Compensates for MongoDB rounding issues, non deterministic map entry order etc. Also reduces CPU load with 30-40%. 2013-05-27 12:27:45 +02:00
Olof Larsson
b50c8cd048 I like this order better. 2013-05-27 09:46:08 +02:00
Olof Larsson
9d01aa974e Even better statistics. 2013-05-27 09:39:53 +02:00
Olof Larsson
1b7a6c45e6 Adding in a sync-log. This makes it easier to find colls that sync to much 2013-05-27 08:41:06 +02:00
Olof Larsson
2c8c0b7c7d This more flexible. 2013-05-26 17:45:23 +02:00
Olof Larsson
9b0e112a5c Check if entity is FireWork. Fixes #5 and #6. Thanks aadnk. 2013-05-26 11:22:29 +02:00
Olof Larsson
957ef2688e Update for 1_5_R3, after a detailed lookthrough it seems no nms method signatures I used had changed. 2013-05-03 09:57:26 +02:00
Olof Larsson
b846250944 Added missing line, the DB cache now works. Added mstore stats and listcolls command. 2013-05-01 19:41:36 +02:00
Olof Larsson
9a8a792315 Remove _id field in the converter and care about if numbers are floating or not. 2013-05-01 18:59:05 +02:00
Olof Larsson
eb3fc18f65 Save/Update like this? 2013-05-01 18:26:50 +02:00
Olof Larsson
5faf1a885e Renaming the gson driver to flatfile. 2013-05-01 18:13:29 +02:00
Olof Larsson
5e326ed672 Escaping dot and dollar signs in the mongo <--> gson converter, adding success message to copy command and preparing to rename gson --> flatfile. 2013-05-01 18:04:59 +02:00
Olof Larsson
4d6c73f1d6 Working some more on mongo-stuff 2013-05-01 14:48:24 +02:00
Olof Larsson
81be88fca8 The copy command seem to work like this. 2013-05-01 14:29:40 +02:00
Olof Larsson
00304be8a2 Remove stuff I never use and make the database system GSON centric. 2013-05-01 14:06:47 +02:00
Olof Larsson
f6206d0392 Add an mstore command with a todo dbcopy command. Also cache database instances in mstore. 2013-05-01 13:07:21 +02:00
Olof Larsson
b64e8a8b77 Reorganizing MCore internal commands and permissions. 2013-05-01 12:29:51 +02:00
Olof Larsson
a3d99f627f Dies one is command as well 2013-05-01 11:33:11 +02:00
Olof Larsson
35dfb769d5 Move the commands to a special package. 2013-05-01 11:31:00 +02:00
Olof Larsson
9264911634 Rename Perm --> MCorePerm to reduce ammount of class name clashes. 2013-05-01 11:28:15 +02:00
Olof Larsson
738d1f7822 Move the Aspect and Multiverse entities to the main package. 2013-05-01 11:25:39 +02:00
Olof Larsson
41e581ee71 Update MongoDB Java driver to 2.11.1 2013-05-01 11:06:39 +02:00
Olof Larsson
bc92d94f89 Use the bukkit rounding tools to round the same way always. 2013-04-29 12:48:41 +02:00
Olof Larsson
5649117b1f Fix an NPE 2013-04-29 10:35:49 +02:00
Olof Larsson
c34c2354bd Adding some PS format 2013-04-26 20:07:25 +02:00
Olof Larsson
9b3a87c0da Add a progressbar system 2013-04-26 17:54:53 +02:00
Olof Larsson
ff3219ea6e Money, ensure accounts exist before using them. If they are not players set balance to zero. 2013-04-26 08:03:22 +02:00
Olof Larsson
2c70489885 There we go 2013-04-25 13:31:15 +02:00
Olof Larsson
69c78d68a1 First attempt to color the help with requirementsAreMet color code. 2013-04-25 13:25:49 +02:00
Olof Larsson
ffab977475 Fix bugs with isSameChunk 2013-04-25 12:05:52 +02:00
Olof Larsson
1a3f153a08 Improve entity.changed(), it now checks for attachment and inited. 2013-04-25 08:34:59 +02:00
Olof Larsson
18bb47007e Minor change to the modulo task 2013-04-24 09:00:05 +02:00
Olof Larsson
2db041fea4 Minor tweaks to the Money static. 2013-04-22 09:24:00 +02:00
Olof Larsson
35599952e8 With custom naming for block command senders that follow no special rules for the ID there is not much we can do. Also the reverse lookup was doomed to fail from the beginning. Removing that feature and make the system more compatible with the current situation. 2013-04-21 10:08:35 +02:00
Olof Larsson
c24a9a63dc Fix some comments and indent style 2013-04-20 15:50:50 +02:00
Olof Larsson
dc15ec2d6c Now that I think of it the default case is the null case. 2013-04-19 18:58:34 +02:00
Olof Larsson
e8e8de834b Fore the sake of inception add in experimental money support in mcore through Vault. 2013-04-19 18:25:47 +02:00
Olof Larsson
2b7b45b7d3 Working some one the MCore event classes. I will lie and say that all events are cancellable. In situations where we dont want them to be cancellable we can simply not care about that boolean. 2013-04-19 15:13:30 +02:00
Olof Larsson
59b133284e Adding potion utilities to mcores mutil. 2013-04-18 17:13:13 +02:00
Olof Larsson
6f7b10bfb0 Some random additions. Factions stuff that fit into the STD. 2013-04-18 14:17:07 +02:00
Olof Larsson
0ffa24b15e Optimize equals slightly? Like it matters. 2013-04-17 17:14:58 +02:00
Olof Larsson
9b0845f2c3 Improve the PS deserialization logic so it understands LazyLocation from older versions of Factions. 2013-04-17 11:53:55 +02:00
Olof Larsson
cb02cc3ee9 Adding in a standardised version command. 2013-04-16 13:18:01 +02:00
Olof Larsson
8e633ceb2b Moving lowercasing logic to Coll and alter constructors to get rid of uuid as default and troll myself. 2013-04-16 09:23:55 +02:00
Olof Larsson
135e2ce27b Use NaturalOrderComparator instead of built in Java one for strings. 2013-04-12 15:07:34 +02:00
Olof Larsson
d2bad2bb20 Get rid of Auto Increment alltogether. 2013-04-12 14:36:49 +02:00
Olof Larsson
7a358a80d5 Since I only used String ids for now, let's assume that's always the case. Saves us a lot of generics-crap. 2013-04-12 14:05:14 +02:00
Olof Larsson
21dac166eb Messing around with UUID's and ObjectId's. 2013-04-12 11:39:47 +02:00
Olof Larsson
6e15d22eda Some source code formatting to the id-strategies. 2013-04-12 10:54:56 +02:00
Olof Larsson
63b3eae101 Some improvements to the auto increment system. 2013-04-12 10:42:58 +02:00
Olof Larsson
6b4e8e5502 Added better valueOf methods for chunk PS by coord. 2013-04-11 11:27:57 +02:00
Olof Larsson
ac524cd559 Add in a chunk coord plus method for PS 2013-04-11 08:48:36 +02:00
Olof Larsson
6d0e2f7669 Make PS comparable and have equals make use of the compare methods. 2013-04-11 08:19:15 +02:00
Olof Larsson
95f1dc8dd0 Require Plugin only and not MPlugin in MStore. 2013-04-11 07:19:05 +02:00
Olof Larsson
d4f30331ef Do not require MPlugin if Plugin is sufficient 2013-04-10 11:08:13 +02:00
Olof Larsson
9a6cae780d Add MCoreCancellableEvent 2013-04-10 09:04:20 +02:00
Olof Larsson
e00cd2afc8 Rename collections. This is a breaking change that will require manual fix. Remember to warn other users. 2013-04-10 08:58:55 +02:00
Olof Larsson
b7a88095d3 More stuff in cooldown system test component. 2013-04-05 09:19:13 +02:00
Olof Larsson
cae94f01f6 first draft and cooldown component 2013-04-03 09:35:23 +02:00
Olof Larsson
79d382ee40 Made command registering override per default. 2013-03-28 10:51:25 +01:00
Olof Larsson
61d7b7cb12 Moved the tpdelay to the mstore conf. 2013-03-26 10:37:42 +01:00
Olof Larsson
edabc02555 Implemented a mstore mcore config with custom permission denied formats. 2013-03-26 10:20:00 +01:00
Olof Larsson
d274874092 Conf should be called ConfServer. 2013-03-26 09:50:19 +01:00
Olof Larsson
2544fa0a6b Add a permission denied format event. 2013-03-26 09:43:23 +01:00
Olof Larsson
6fc7723466 Add a gson adapter for PlayerInventory. 2013-03-26 09:16:09 +01:00
Olof Larsson
853fe36a5d InventoryUtil changes and PlayerUtil.isJoined- 2013-03-25 13:50:37 +01:00
Olof Larsson
f8d29d98aa More tweaks to the inventory stuff 2013-03-23 17:24:38 +01:00
Olof Larsson
9cc687dab0 Experimental PlayerInventory serdes support. 2013-03-23 16:14:13 +01:00
Olof Larsson
4c70897d87 Update for R2 2013-03-22 17:31:16 +01:00
Olof Larsson
90f2c1059b More work to the inventory util. 2013-03-22 11:05:06 +01:00
Olof Larsson
c12c1ac765 Working with InventoryUtil and removing NMS references. 2013-03-22 10:20:11 +01:00