Jump to content

Recommended Posts

Posted

Its obvious, not visible, so make it visible, so make it public.

 

Simply follow Eclipse hints and quick fixes.

  • 4 months later...
Posted

I have problem on compilation this files , a have a Freya L2j Files

[javac] D:\SOURCE\trunk\Core\java\com\l2jserver\gameserver\model\actor\instance\L2CrystalInstance.java:695: error: setReputationScore(int,boolean) has private access in L2Clan
    [javac] 				player.getClan().setReputationScore(player.getClan().getReputationScore() - price, true);   
    [javac] 				                ^
    [javac] D:\SOURCE\trunk\Core\java\com\l2jserver\gameserver\model\actor\instance\L2CrystalInstance.java:702: error: setReputationScore(int,boolean) has private access in L2Clan
    [javac] 				player.getClan().setReputationScore(player.getClan().getReputationScore() - price, true);   
    [javac] 				                ^
    [javac] 2 errors

 

int current = _warningCount;
			_warningCount = current + count;
			player.getClan().setReputationScore(player.getClan().getReputationScore() - price, true);   
			player.sendPacket(new CreatureSay(0, Say2.PARTY, "Crystal", "Successfully purchased " + count + " warnings!"));
		}
		else if (abilitiId == 2)
		{
			int current = _defenceSpawnCount;
			_defenceSpawnCount = current + count;
			player.getClan().setReputationScore(player.getClan().getReputationScore() - price, true);   
			player.sendPacket(new CreatureSay(0, Say2.PARTY, "Crystal", "Successfully purchased " + count + " Defence Abilities!"));

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...