Commit Graph

163 Commits

Author SHA1 Message Date
Gibstick
23e4a3887f implemented -g none to spawn a party without extra guests 2013-07-26 21:29:06 -04:00
Gibstick
20691b0904 fixed /ds save, added command interface for guests, added config file for max guests, fixed misc bugs 2013-07-26 21:21:27 -04:00
Gibstick
d8cd43891a added config file for default guests 2013-07-26 16:20:11 -04:00
Gibstick
e73f0414d2 added code framework for uninvited guests 2013-07-22 16:22:31 -04:00
Gibstick
e15eb397da implemented /ds saveconfig 2013-07-22 09:43:08 -04:00
Gibstick
4e4ebc58f8 implemented /ds defaults 2013-07-22 09:09:09 -04:00
Gibstick
4653521a39 fixed useless parameters leftover from refactoring 2013-07-21 21:30:39 -04:00
Gibstick
d4a36a6a21 fixed discosheep.other typo 2013-07-21 14:44:02 -04:00
Gibstick
bbdadf7135 removed more unused imports 2013-07-21 11:51:14 -04:00
Gibstick
3ed151ed25 removed unused import 2013-07-21 11:41:21 -04:00
Gibstick
5b7c996cff added "-r dense" as argument for radius
-r dense will tell the plugin to calculate the radius of the sheep using
the forumla r = sqrt(sheep / pi), so that it party becomes a sheep
moshpit.
also renamed getSheep to getSheepList, and added getSheep to get the
sheep number
2013-07-21 11:36:37 -04:00
Gibstick
28a27c9c29 refactored permissions and commands to DiscoSheep class 2013-07-21 10:57:42 -04:00
Gibstick
5841b5a7f4 cleaned up code, inlined senderHasPerm, condensed help command output 2013-07-21 09:13:48 -04:00
Gibstick
1336cc1aaf decreased number of fireworks fired, added black and white to sheep colours, decreased sheep jump height 2013-07-20 12:38:30 -04:00
Gibstick
9e6c49e056 sheep now spawn with random orientation 2013-07-19 21:22:39 -04:00
Gibstick
d9d041e4e1 fixed plugin.yml main class, formatting 2013-07-19 21:03:19 -04:00
Gibstick
be78675c6d Renamed package to adhere to naming convention 2013-07-19 20:19:54 -04:00
Gibstick
62abf9fd11 fixed permission node typo in plugin.yml 2013-07-19 19:32:51 -04:00
Gibstick
886d7f4192 refactorizations, fixed /ds other, added permission for -p switch 2013-07-19 19:32:26 -04:00
Gibstick
dbbe9d5dba I cannot into boolean logic (fixed limit checking and exceptions) 2013-07-19 18:34:47 -04:00
Gibstick
4855cf753c output no perms message for -fw 2013-07-19 12:29:30 -04:00
Gibstick
0830764cc3 exceptions, y u no work 2013-07-19 12:06:26 -04:00
Gibstick
cca4cb11e3 changed order of command parsing, fixed limit checking for arguments 2013-07-19 11:48:35 -04:00
Gibstick
1f13192aec implemented copy with new player method for DiscoParty 2013-07-19 11:42:25 -04:00
Gibstick
f92247c170 catch NumberFormatException, fixed off-by-one error 2013-07-19 11:28:41 -04:00
Gibstick
fae7127a99 upped version number to 1.0.1 2013-07-18 22:00:59 -04:00
Gibstick
997fc5d849 updated plugin.yml help message 2013-07-18 21:53:48 -04:00
Gibstick
4e3d54f3a4 minor refactorization of DiscoSheep.startParty() and DiscoParty.startDisco() 2013-07-18 21:43:14 -04:00
Gibstick
b59ccc776f updated /ds help for new commands 2013-07-18 21:20:11 -04:00
Gibstick
c988e9a723 added new /ds stop to stop single parties, renamed old /ds stop to stopall 2013-07-18 21:17:05 -04:00
Gibstick
d70eb38848 added /ds other command 2013-07-18 20:56:53 -04:00
Charlie Wang
1fb36d25e5 added config file, added config file reload command, and registered permissions in plugin.yml 2013-07-12 16:51:14 -04:00
Charlie Wang
f7a5aabd5c nothing 2013-07-12 13:06:01 -04:00
Charlie Wang
d947c62c6a properly randomized the sheep spawn coordinates 2013-07-12 13:02:48 -04:00
Charlie Wang
b0f55fbefb users now set duration in ticks, and parties now stop on player quit 2013-07-12 11:56:22 -04:00
Charlie Wang
869210e0d2 removed 10000 HP on sheep 2013-07-12 10:42:22 -04:00
Charlie Wang
968603d54f sheep have 50% chance to jump every 2 state changes 2013-07-12 09:28:50 -04:00
Charlie Wang
6166c56f9c blocked all sheep damage 2013-07-12 09:14:42 -04:00
RangerMauve
21c10851f3 Sheep alternate jumping, half the sheep jump at a time. 2013-07-12 08:47:18 -04:00
RangerMauve
3e06213fc5 Added code for making sheep jump. Can be toggled with DiscoParty.doJump. Default Y velocity applied can be set with defaultSheepJump. Sheep jump at same time as they would launch fireworks. TODO: tune jump velocity to make it look natural. 2013-07-12 08:09:07 -04:00
Charlie Wang
0a7bd06579 added arguments for period, duration, number, and radius 2013-07-11 23:25:48 -04:00
Charlie Wang
1a5e5050dc fixed /ds all 2013-07-11 21:24:56 -04:00
Charlie Wang
ff9e992460 added number sheep number and radius switches 2013-07-11 21:15:54 -04:00
Charlie Wang
291a39ccc0 preparations for command switch parsing 2013-07-11 19:07:46 -04:00
Charlie Wang
43fd8815f5 rewrote command handling and added fireworks toggle switch 2013-07-11 11:28:20 -04:00
Charlie Wang
a41da1fd45 added random fireworks 2013-07-11 10:16:59 -04:00
Charlie Wang
e4a7eed814 /ds all and /ds stop commands implemented 2013-06-30 23:16:18 -04:00
Charlie Wang
5419d97426 actually use the synchronized methods 2013-06-30 22:51:25 -04:00
Georgiy
300083ca35 Got rid of cyclic getter 2013-06-30 22:48:09 -04:00
Georgiy
bf41851939 Synchronized party list acessors 2013-06-30 22:38:38 -04:00
Charlie Wang
5cce339172 Merge branch 'master' of https://github.com/Gibstick/DiscoSheep.git 2013-06-30 22:31:09 -04:00
Charlie Wang
e807e0fe7e implemented updateAllSheep and refactored sheep updating 2013-06-30 22:30:52 -04:00
Georgiy
95fdf1295e Added stopAllParties() 2013-06-30 22:29:19 -04:00
Charlie Wang
ae8dff9e00 Stop all parties when plugin is disabled 2013-06-30 22:16:32 -04:00
Charlie Wang
5ecbb93091 actually fixed anti-breeding 2013-06-30 22:08:49 -04:00
Charlie Wang
e23a269b8c fixed anti-breeding 2013-06-30 21:57:32 -04:00
Georgiy
8acf96fc34 Made sheeps target player on spawn. 2013-06-30 21:27:35 -04:00
Georgiy
5c8f2e3133 Changed rhythm to something more complex 2013-06-30 21:14:24 -04:00
Georgiy
84d77f2f25 Minor changes, whatever 2013-06-30 21:00:43 -04:00
Charlie Wang
9c44f3daec Merge remote-tracking branch 'origin/limit-parties' 2013-06-30 20:53:49 -04:00
Charlie Wang
f2f429f21d only allow one party per player 2013-06-30 20:52:49 -04:00
Georgiy
9ff882c526 Added check for breeding before preventing sheep event 2013-06-30 20:49:34 -04:00
Georgiy
aa07123277 Merge branch 'master' of https://github.com/Gibstick/DiscoSheep.git 2013-06-30 20:41:23 -04:00
Georgiy
28fdb0d055 Added to SheepDeshearer to prevent sheep from breeding. 2013-06-30 20:38:14 -04:00
Charlie Wang
59a1bbbdac Merge branch 'master' of https://github.com/Gibstick/DiscoSheep
Conflicts:
	src/gibstick/bukkit/discosheep/DiscoParty.java
2013-06-30 20:22:48 -04:00
Georgiy
8863b401c9 Initialized sheep array in DiscoParty 2013-06-30 20:15:11 -04:00
Charlie Wang
a8023c3594 wtf I cannot into git
Why is it trying to replace the entire file with the entire file
2013-06-30 20:13:32 -04:00
Georgiy
b185f7d02a Trying to fix null pointer exception. 2013-06-30 20:06:41 -04:00
Georgiy
909ff02922 Huge restructuring to have multiple parties at a time. 2013-06-30 19:54:27 -04:00
RangerMauve
112d3f0f08 Made sure to cancel previously scheduled update before starting a new loop of them. 2013-06-30 18:48:39 -04:00
Charlie Wang
9d4f65cec9 more sounds, state change is now twice as fast 2013-06-30 18:44:25 -04:00
Charlie Wang
0ef9406cfe Sounds are now played 2013-06-30 18:32:25 -04:00
Charlie Wang
e83031769b Fixed random colours, bumped up version number 2013-06-30 18:27:26 -04:00
RangerMauve
2a802cfe81 Fixed some structuring 2013-06-30 18:25:40 -04:00
RangerMauve
7eed130d52 Changed default duration to 300 ticks 2013-06-30 18:14:38 -04:00
Gibstick
64e5f0583d Merge pull request #1 from Gibstick/gibstick-derp
Made sure sheep are dead
2013-06-30 15:08:02 -07:00
RangerMauve
e63fc0e0c4 Merge branch 'master' of https://github.com/Gibstick/DiscoSheep.git 2013-06-30 18:01:48 -04:00
RangerMauve
1c350e844d Refactored to make DiscoUpdater only call the update method on DiscoSheep and moved all the update logic to DiscoSheep. 2013-06-30 18:01:05 -04:00
Charlie Wang
4ccba41757 Made sure sheep are dead 2013-06-30 17:55:15 -04:00
Charlie Wang
0e89570248 fixed package name typo in plugin.yml 2013-06-30 17:41:06 -04:00
RangerMauve
a087e07052 Fixed bad cast, added more structure for handling multiple players. 2013-06-30 17:39:57 -04:00
RangerMauve
c14892f40b Merge branch 'master' of https://github.com/Gibstick/DiscoSheep.git 2013-06-30 17:26:47 -04:00
RangerMauve
14a349e6a0 Added actual command registering stuff, maybe? 2013-06-30 17:25:45 -04:00
Charlie Wang
432e7afb92 Added /ds command to plugin.yml 2013-06-30 17:21:13 -04:00
Charlie Wang
803470a76b Added random sheep colour upon spawn 2013-06-30 16:44:22 -04:00
RangerMauve
572cb5a9d6 Implemented shear prevention on spawned sheep 2013-06-30 16:13:29 -04:00
RangerMauve
9dba2a1be3 Changed access of sheep, added ShepDeshearer. 2013-06-30 16:00:26 -04:00
RangerMauve
76bded66df Changed access of sheep, added ShepDeshearer. 2013-06-30 15:54:28 -04:00
Charlie Wang
c3008d9608 Renamed cycleSheepColours to randomizeSheepColours, and implemented it using a lookup table of accetable disco colours 2013-06-30 15:46:52 -04:00
Charlie Wang
65122cc098 Converted spaces to tabs, except for plugin.yml 2013-06-30 15:17:56 -04:00
RangerMauve
e749635131 Fixed syntax error in sheep ArrayList 2013-06-30 15:06:57 -04:00
Charlie Wang
eda4007b1e I cannot into git 2013-06-30 14:48:36 -04:00
Charlie Wang
bf15d90dcd added sheepSpawnRadius, configurable later 2013-06-30 14:27:46 -04:00
Charlie Wang
d7b075d507 All DiscoSheep methods are now package-protected 2013-06-30 14:17:41 -04:00
Charlie Wang
dd049a3011 fixed package protection for DiscoSheep 2013-06-30 14:16:18 -04:00
Charlie Wang
8533b007e3 Misc fixes for DiscoUpdater 2013-06-30 14:09:30 -04:00
RangerMauve
61dcce06dd Attempting merge fix 2013-06-30 14:00:56 -04:00
RangerMauve
9fc9e01c3b Attempting merge fix 2013-06-30 13:58:47 -04:00
RangerMauve
337a491dc6 Added updater code 2013-06-30 13:53:07 -04:00
Charlie Wang
edef18aa4c implemented spawnSheep(Player, int) 2013-06-30 13:52:31 -04:00